Fix Fog shader corrupted rendering
This commit is contained in:
+5
-3
@@ -122,9 +122,11 @@ public abstract class AbstractShaderRenderer {
|
||||
GL32.glActiveTexture(GL32.GL_TEXTURE0);
|
||||
GL32.glBindTexture(GL32.GL_TEXTURE_2D, shaderTexture);
|
||||
GL32.glDrawArrays(GL32.GL_TRIANGLES, 0, 6);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// explicitly unbinding the frame buffer is necessary to prevent GL_CLEAR calls from hitting the wrong buffer
|
||||
GL32.glBindFramebuffer(GL32.GL_FRAMEBUFFER, 0);
|
||||
|
||||
state.restore();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user