From 854c999d827cfb78938c3b4605707b891092d001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sun, 9 Aug 2020 00:52:45 +0200 Subject: GPUShader: Change shader state tracking to be part of the GPUContext This remove the use of batch->program and replace it with batch->shader. This will allow GL abstraction latter. --- source/blender/gpu/intern/gpu_context_private.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/gpu/intern/gpu_context_private.hh') diff --git a/source/blender/gpu/intern/gpu_context_private.hh b/source/blender/gpu/intern/gpu_context_private.hh index d369dbe7402..9d3b5c3fc85 100644 --- a/source/blender/gpu/intern/gpu_context_private.hh +++ b/source/blender/gpu/intern/gpu_context_private.hh @@ -41,6 +41,7 @@ struct GPUMatrixState; struct GPUContext { public: /** State managment */ + GPUShader *shader = NULL; GPUFrameBuffer *current_fbo = NULL; GPUMatrixState *matrix_state = NULL; -- cgit v1.2.3