From fe559d06593da143e036cf154e36c5d51ec7324c Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 13 Apr 2017 16:49:39 +0200 Subject: OpenGL: do not support legacy matrix when using core profile --- source/blender/gpu/GPU_matrix.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu/GPU_matrix.h') diff --git a/source/blender/gpu/GPU_matrix.h b/source/blender/gpu/GPU_matrix.h index 8643dee3408..62b5b7f8ba5 100644 --- a/source/blender/gpu/GPU_matrix.h +++ b/source/blender/gpu/GPU_matrix.h @@ -43,7 +43,11 @@ extern "C" { /* For now we support the legacy matrix stack in gpuGetMatrix functions. * Will remove this after switching to core profile, which can happen after * we convert all code to use the API in this file. */ -#define SUPPORT_LEGACY_MATRIX 1 +#ifdef WITH_GL_PROFILE_CORE + #define SUPPORT_LEGACY_MATRIX 0 +#else + #define SUPPORT_LEGACY_MATRIX 1 +#endif /* implement 2D parts with 4x4 matrices, even though 3x3 feels better * this is a compromise to get core profile up & running sooner -- cgit v1.2.3