summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-04 22:20:12 +0200
committerSubv <subv2112@gmail.com>2018-07-04 22:20:12 +0200
commit4bda9693be490cdca498483e2d196afb5d2294b5 (patch)
treebeecdf4a6acfbba759d0e7d6e606428f51cfd4a1 /src
parentGPU: Corrected the decoding for the TEX shader instruction. (diff)
downloadyuzu-4bda9693be490cdca498483e2d196afb5d2294b5.tar
yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.tar.gz
yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.tar.bz2
yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.tar.lz
yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.tar.xz
yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.tar.zst
yuzu-4bda9693be490cdca498483e2d196afb5d2294b5.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index e516eb1ad..8072c8cb2 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -686,7 +686,10 @@ u32 RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, GLuint program,
// Bind the uniform to the sampler.
GLint uniform = glGetUniformLocation(program, entry.GetName().c_str());
- ASSERT(uniform != -1);
+ if (uniform == -1) {
+ continue;
+ }
+
glProgramUniform1i(program, uniform, current_bindpoint);
const auto texture = maxwell3d.GetStageTexture(entry.GetStage(), entry.GetOffset());