Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[droid] clear the depth buffer after rendering an addon.

This fixes slow GUI after vis/screensaver.

We don't use the depth buffer, but addons do. Prior to this change, we were
relying on them to clean up after themselves. They weren't, and it led to a
~25% gui slowdown after they'd started.

TODO: We should be pushing lots more settings to our state block. A poorly
written vis/ss could potentially mess with much of our state.
  • Loading branch information...
commit f80175f1c5c4aabfdd4e8f5f4adc41be21a7dbb5 1 parent 41a71a8
Cory Fields authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  xbmc/rendering/gles/RenderSystemGLES.cpp
View
1  xbmc/rendering/gles/RenderSystemGLES.cpp
@@ -373,6 +373,7 @@ void CRenderSystemGLES::ApplyStateBlock()
glActiveTexture(GL_TEXTURE0);
glEnable(GL_BLEND);
glEnable(GL_SCISSOR_TEST);
+ glClear(GL_DEPTH_BUFFER_BIT);
}
void CRenderSystemGLES::SetCameraPosition(const CPoint &camera, int screenWidth, int screenHeight)
Please sign in to comment.
Something went wrong with that request. Please try again.