]> git.tdb.fi Git - libs/gl.git/commit
Adjust OccludedScene to be more compatible with OpenGL ES
authorMikko Rasa <tdb@tdb.fi>
Sun, 10 Jan 2016 16:45:06 +0000 (18:45 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 10 Jan 2016 16:45:06 +0000 (18:45 +0200)
commit782344299d402dfc7e4eb038bba876d7455f50f5
tree064e7f1da6ad3183d51d2a2a5ecfc2d2dac3d65b
parent041717fbfb7d9a46459f15ecc55a5520f84d006c
Adjust OccludedScene to be more compatible with OpenGL ES

GL_SAMPLES_PASSED is not available in OpenGL ES so use occlusion_query2
for GL_ANY_SAMPLES_PASSED.  In theory it's possible for an implementation
to support occlusion_query but not the 2 variant; I'll deal with that
case if I ever come across such a combination of hardware and drivers.
extensions/arb_occlusion_query2.glext [new file with mode: 0644]
source/occludedscene.cpp