From d849663877483acb16010474e8c8f3db19e8831c Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Thu, 1 Jan 2015 20:46:00 +0100 Subject: [PATCH] Fix for #1818 thanks to math07 Intel gpu seems to have issue capturing screenshot from GL_FRONT framebuffer, use GL_BACK instead. --- lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp b/lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp index a84174dff..0306be831 100644 --- a/lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp +++ b/lib/irrlicht/source/Irrlicht/COpenGLDriver.cpp @@ -4651,7 +4651,7 @@ IImage* COpenGLDriver::createScreenShot(video::ECOLOR_FORMAT format, video::E_RE pixels = static_cast(newImage->lock()); if (pixels) { - GLenum tgt=GL_FRONT; + GLenum tgt=GL_BACK; switch (target) { case video::ERT_FRAME_BUFFER: