summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_util.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-10-21 06:03:22 +0200
committerbunnei <bunneidev@gmail.com>2015-10-22 03:59:47 +0200
commite7b1f2ae0af304abea3fb9a5b658abb92737caaa (patch)
tree01667cf803dc91dbb4f6c123b27f177d8ac3eec3 /src/video_core/renderer_opengl/gl_shader_util.cpp
parentgl_shader_gen: Various cleanups to shader generation. (diff)
downloadyuzu-e7b1f2ae0af304abea3fb9a5b658abb92737caaa.tar
yuzu-e7b1f2ae0af304abea3fb9a5b658abb92737caaa.tar.gz
yuzu-e7b1f2ae0af304abea3fb9a5b658abb92737caaa.tar.bz2
yuzu-e7b1f2ae0af304abea3fb9a5b658abb92737caaa.tar.lz
yuzu-e7b1f2ae0af304abea3fb9a5b658abb92737caaa.tar.xz
yuzu-e7b1f2ae0af304abea3fb9a5b658abb92737caaa.tar.zst
yuzu-e7b1f2ae0af304abea3fb9a5b658abb92737caaa.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_util.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_util.cpp b/src/video_core/renderer_opengl/gl_shader_util.cpp
index 2fa0ceb3e..735c86d22 100644
--- a/src/video_core/renderer_opengl/gl_shader_util.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_util.cpp
@@ -68,9 +68,9 @@ GLuint LoadProgram(const char* vertex_shader, const char* fragment_shader) {
glBindAttribLocation(program_id, Attributes::ATTRIBUTE_POSITION, "vert_position");
glBindAttribLocation(program_id, Attributes::ATTRIBUTE_COLOR, "vert_color");
- glBindAttribLocation(program_id, Attributes::ATTRIBUTE_TEXCOORDS + 0, "vert_texcoord0");
- glBindAttribLocation(program_id, Attributes::ATTRIBUTE_TEXCOORDS + 1, "vert_texcoord1");
- glBindAttribLocation(program_id, Attributes::ATTRIBUTE_TEXCOORDS + 2, "vert_texcoord2");
+ glBindAttribLocation(program_id, Attributes::ATTRIBUTE_TEXCOORD0, "vert_texcoord0");
+ glBindAttribLocation(program_id, Attributes::ATTRIBUTE_TEXCOORD1, "vert_texcoord1");
+ glBindAttribLocation(program_id, Attributes::ATTRIBUTE_TEXCOORD2, "vert_texcoord2");
glLinkProgram(program_id);