소스 검색

gl_shader_manager: Replace unimplemented function prototype

This was just a linker error waiting to happen.
Lioncash 8 년 전
부모
커밋
d5bc9aef4e
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 2
      src/video_core/renderer_opengl/gl_shader_manager.cpp
  2. 0 1
      src/video_core/renderer_opengl/gl_shader_manager.h

+ 3 - 2
src/video_core/renderer_opengl/gl_shader_manager.cpp

@@ -10,8 +10,9 @@
 namespace GLShader {
 
 namespace Impl {
-void SetShaderUniformBlockBinding(GLuint shader, const char* name,
-                                  Maxwell3D::Regs::ShaderStage binding, size_t expected_size) {
+static void SetShaderUniformBlockBinding(GLuint shader, const char* name,
+                                         Maxwell3D::Regs::ShaderStage binding,
+                                         size_t expected_size) {
     GLuint ub_index = glGetUniformBlockIndex(shader, name);
     if (ub_index != GL_INVALID_INDEX) {
         GLint ub_size = 0;

+ 0 - 1
src/video_core/renderer_opengl/gl_shader_manager.h

@@ -21,7 +21,6 @@ using Tegra::Engines::Maxwell3D;
 
 namespace Impl {
 void SetShaderUniformBlockBindings(GLuint shader);
-void SetShaderSamplerBindings(GLuint shader);
 } // namespace Impl
 
 /// Uniform structure for the Uniform Buffer Object, all vectors must be 16-byte aligned