commit
eadec4c5ad
@ -1675,16 +1675,15 @@ public final class GLRenderer implements Renderer {
|
|||||||
+ " by the video hardware!");
|
+ " by the video hardware!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context.boundDrawBuf != MRT_OFF + fb.getNumColorBuffers()) {
|
intBuf16.clear();
|
||||||
intBuf16.clear();
|
for (int i = 0; i < fb.getNumColorBuffers(); i++) {
|
||||||
for (int i = 0; i < fb.getNumColorBuffers(); i++) {
|
intBuf16.put(GLFbo.GL_COLOR_ATTACHMENT0_EXT + i);
|
||||||
intBuf16.put(GLFbo.GL_COLOR_ATTACHMENT0_EXT + i);
|
|
||||||
}
|
|
||||||
|
|
||||||
intBuf16.flip();
|
|
||||||
glext.glDrawBuffers(intBuf16);
|
|
||||||
context.boundDrawBuf = MRT_OFF + fb.getNumColorBuffers();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
intBuf16.flip();
|
||||||
|
glext.glDrawBuffers(intBuf16);
|
||||||
|
context.boundDrawBuf = MRT_OFF + fb.getNumColorBuffers();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
RenderBuffer rb = fb.getColorBuffer(fb.getTargetIndex());
|
RenderBuffer rb = fb.getColorBuffer(fb.getTargetIndex());
|
||||||
// select this draw buffer
|
// select this draw buffer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user