No need to enable FZ every frame.

This commit is contained in:
Sacha committed 2013-10-25 21:52:50 +10:00
1 parent 4590e44954
commit fc37c16aa2
2 files changed
+1 -4

No files matched your search

+1 -2
View File
@@ -432,8 +432,7 @@ void NativeInitGraphics()
void NativeRender()
{
EnableFZ();
// Clearing the screen at the start of the frame is an optimization for tiled mobile GPUs, as it then doesn't need to keep it around between frames.
// Clearing the screen at the start of the frame is an optimization for tiled mobile GPUs, as it then doesn't need to keep it around between frames.
glClearColor(0,0,0,1);
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
-2
View File
@@ -569,8 +569,6 @@ void TakeScreenshot() {
}
void NativeRender() {
EnableFZ();
glstate.depthWrite.set(GL_TRUE);
glstate.colorMask.set(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);