diff options
author | Subv <subv2112@gmail.com> | 2018-07-02 16:43:38 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-02 16:43:38 +0200 |
commit | 80c5e8ae99255fd2871e9500a5b26e5b5cb6b167 (patch) | |
tree | b66edd9bd08bfa3b59345cf94e253c298f1374a2 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | GPU: Allow GpuToCpuAddress to return boost::none for unmapped addresses. (diff) | |
download | yuzu-80c5e8ae99255fd2871e9500a5b26e5b5cb6b167.tar yuzu-80c5e8ae99255fd2871e9500a5b26e5b5cb6b167.tar.gz yuzu-80c5e8ae99255fd2871e9500a5b26e5b5cb6b167.tar.bz2 yuzu-80c5e8ae99255fd2871e9500a5b26e5b5cb6b167.tar.lz yuzu-80c5e8ae99255fd2871e9500a5b26e5b5cb6b167.tar.xz yuzu-80c5e8ae99255fd2871e9500a5b26e5b5cb6b167.tar.zst yuzu-80c5e8ae99255fd2871e9500a5b26e5b5cb6b167.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 62ee45a36..45560fbee 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -636,7 +636,11 @@ u32 RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, GLuint program, glProgramUniform1i(program, uniform, current_bindpoint); const auto texture = maxwell3d.GetStageTexture(entry.GetStage(), entry.GetOffset()); - ASSERT(texture.enabled); + + if (!texture.enabled) { + state.texture_units[current_bindpoint].texture_2d = 0; + continue; + } texture_samplers[current_bindpoint].SyncWithConfig(texture.tsc); Surface surface = res_cache.GetTextureSurface(texture); |