Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r--source/blender/gpu/opengl/gl_shader.cc5
-rw-r--r--source/blender/gpu/opengl/gl_shader.hh3
2 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_shader.cc b/source/blender/gpu/opengl/gl_shader.cc
index cc5f83228d6..28b89ad48f5 100644
--- a/source/blender/gpu/opengl/gl_shader.cc
+++ b/source/blender/gpu/opengl/gl_shader.cc
@@ -426,4 +426,9 @@ void GLShader::vertformat_from_shader(GPUVertFormat *format) const
}
}
+int GLShader::program_handle_get(void) const
+{
+ return (int)this->shader_program_;
+}
+
/** \} */
diff --git a/source/blender/gpu/opengl/gl_shader.hh b/source/blender/gpu/opengl/gl_shader.hh
index a686014f4c5..befb2bce8b0 100644
--- a/source/blender/gpu/opengl/gl_shader.hh
+++ b/source/blender/gpu/opengl/gl_shader.hh
@@ -71,6 +71,9 @@ class GLShader : public Shader {
void vertformat_from_shader(GPUVertFormat *format) const override;
+ /* DEPRECATED: Kept only because of BGL API. */
+ int program_handle_get(void) const override;
+
private:
char *glsl_patch_get(void);