No need to enable FZ every frame.

This commit is contained in:
Sacha 2013-10-25 13:32:57 +10:00
parent 4590e44954
commit fc37c16aa2
2 changed files with 1 additions and 4 deletions

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);

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);