Skip to content

Commit

Permalink
GE Debugger: Fix asserts when reading debug tex.
Browse files Browse the repository at this point in the history
This is unfortunate, but right now BuildTexture() applies the sampling
settings which happen within a render pass.  So we must have a render
pass.
  • Loading branch information
unknownbrackets committed Jun 11, 2018
1 parent 0ed2c03 commit ccef997
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GPU/GLES/TextureCacheGLES.cpp
Expand Up @@ -841,6 +841,8 @@ bool TextureCacheGLES::GetCurrentTextureDebug(GPUDebugBuffer &buffer, int level)

// Apply texture may need to rebuild the texture if we're about to render, or bind a framebuffer.
TexCacheEntry *entry = nextTexture_;
// We might need a render pass to set the sampling params, unfortunately. Otherwise BuildTexture may crash.
framebufferManagerGL_->RebindFramebuffer();
ApplyTexture();

// TODO: Centralize?
Expand Down

0 comments on commit ccef997

Please sign in to comment.