mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
glReadPixels *is* available on OpenGL ES
This commit is contained in:
parent
9ee63dc3f4
commit
1cdb440b77
1 changed files with 0 additions and 1 deletions
|
@ -119,7 +119,6 @@ namespace
|
||||||
osg::ref_ptr<osg::Geometry> geom = osg::createTexturedQuadGeometry(osg::Vec3(-1,-1,0), osg::Vec3(2,0,0), osg::Vec3(0,2,0));
|
osg::ref_ptr<osg::Geometry> geom = osg::createTexturedQuadGeometry(osg::Vec3(-1,-1,0), osg::Vec3(2,0,0), osg::Vec3(0,2,0));
|
||||||
geom->drawImplementation(renderInfo);
|
geom->drawImplementation(renderInfo);
|
||||||
|
|
||||||
// TODO: implement for GL ES
|
|
||||||
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, resultImage->data());
|
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, resultImage->data());
|
||||||
|
|
||||||
geom->releaseGLObjects();
|
geom->releaseGLObjects();
|
||||||
|
|
Loading…
Reference in a new issue