diff options
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.cc b/source/blender/gpu/intern/gpu_shader.cc index eb0f7935b63..1bd076f96f8 100644 --- a/source/blender/gpu/intern/gpu_shader.cc +++ b/source/blender/gpu/intern/gpu_shader.cc @@ -457,7 +457,7 @@ void GPU_shader_bind(GPUShader *gpu_shader) { Shader *shader = unwrap(gpu_shader); - GPUContext *ctx = GPU_context_active_get(); + Context *ctx = Context::get(); if (ctx->shader != shader) { ctx->shader = shader; @@ -474,7 +474,7 @@ void GPU_shader_bind(GPUShader *gpu_shader) void GPU_shader_unbind(void) { #ifndef NDEBUG - GPUContext *ctx = GPU_context_active_get(); + Context *ctx = Context::get(); if (ctx->shader) { ctx->shader->unbind(); } |