OSDN Git Service

CreateSampler should create a Sampler object by default
authorAlexis Hetu <sugoi@google.com>
Fri, 3 Jul 2015 19:43:53 +0000 (15:43 -0400)
committerAlexis Hétu <sugoi@google.com>
Wed, 8 Jul 2015 18:41:30 +0000 (18:41 +0000)
commit0ef53dbf64f11c9c83ed80d0cda3751beaf407ce
tree8d29e4aa61c8ae4afb6074fae23f4aa1c66328c9
parentad52775476d367199a4cd3b3b47ff8959e63bd59
CreateSampler should create a Sampler object by default

It should be possible to query the default parameters
of a Sampler created with glGenSamplers, so
checkSamplerAllocation() was added to make sure a
created sampler was associated to a Sampler object
where appropriate.

I also cleaned up the API a little to share validation
functions.

Change-Id: I55d95c6663d41e2566b24eb76a431dd4b4da61e3
Reviewed-on: https://swiftshader-review.googlesource.com/3637
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/libGLESv2/Context.cpp
src/OpenGL/libGLESv2/Context.h
src/OpenGL/libGLESv2/Sampler.h
src/OpenGL/libGLESv2/libGLESv3.cpp