|
|
|
@ -202,14 +202,14 @@ public class LwjglRenderer implements Renderer { |
|
|
|
|
|
|
|
|
|
// Fix issue in TestRenderToMemory when GL_FRONT is the main
|
|
|
|
|
// buffer being used.
|
|
|
|
|
// initialDrawBuf = glGetInteger(GL_DRAW_BUFFER);
|
|
|
|
|
// initialReadBuf = glGetInteger(GL_READ_BUFFER);
|
|
|
|
|
initialDrawBuf = glGetInteger(GL_DRAW_BUFFER); |
|
|
|
|
initialReadBuf = glGetInteger(GL_READ_BUFFER); |
|
|
|
|
|
|
|
|
|
// XXX: This has to be GL_BACK for canvas on Mac
|
|
|
|
|
// Since initialDrawBuf is GL_FRONT for pbuffer, gotta
|
|
|
|
|
// change this value later on ...
|
|
|
|
|
initialDrawBuf = GL_BACK; |
|
|
|
|
initialReadBuf = GL_BACK; |
|
|
|
|
// initialDrawBuf = GL_BACK;
|
|
|
|
|
// initialReadBuf = GL_BACK;
|
|
|
|
|
|
|
|
|
|
int spaceIdx = versionStr.indexOf(" "); |
|
|
|
|
if (spaceIdx >= 1) { |
|
|
|
@ -418,14 +418,15 @@ public class LwjglRenderer implements Renderer { |
|
|
|
|
context.reset(); |
|
|
|
|
boundShader = null; |
|
|
|
|
lastFb = null; |
|
|
|
|
|
|
|
|
|
initialDrawBuf = glGetInteger(GL_DRAW_BUFFER); |
|
|
|
|
initialReadBuf = glGetInteger(GL_READ_BUFFER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void resetGLObjects() { |
|
|
|
|
objManager.resetObjects(); |
|
|
|
|
statistics.clearMemory(); |
|
|
|
|
context.reset(); |
|
|
|
|
boundShader = null; |
|
|
|
|
lastFb = null; |
|
|
|
|
invalidateState(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void cleanup() { |
|
|
|
|