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:
authorCampbell Barton <ideasman42@gmail.com>2017-08-20 18:39:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-20 18:41:20 +0300
commit1b79d323d95567de4be595409b5994d993d5154b (patch)
treeadfdbe11372baed0e6c5339995c1e17521333199 /source/blender/gpu/intern/gpu_matrix.c
parent4f881e0d974e051f22926680501f80913f6cb2d4 (diff)
Cleanup: move gawain header out of GPU_matrix
Avoids requiring glew headers in Python API.
Diffstat (limited to 'source/blender/gpu/intern/gpu_matrix.c')
-rw-r--r--source/blender/gpu/intern/gpu_matrix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_matrix.c b/source/blender/gpu/intern/gpu_matrix.c
index 7f024a18ba7..38a55020a5e 100644
--- a/source/blender/gpu/intern/gpu_matrix.c
+++ b/source/blender/gpu/intern/gpu_matrix.c
@@ -29,6 +29,8 @@
* \ingroup gpu
*/
+#include "../../../intern/gawain/gawain/gwn_shader_interface.h"
+
#define SUPPRESS_GENERIC_MATRIX_API
#define USE_GPU_PY_MATRIX_API /* only so values are declared */
#include "GPU_matrix.h"
@@ -556,7 +558,7 @@ const float (*gpuGetNormalMatrixInverse(float m[3][3]))[3]
return m;
}
-void gpuBindMatrices(const Gwn_ShaderInterface* shaderface)
+void gpuBindMatrices(const Gwn_ShaderInterface *shaderface)
{
/* set uniform values to matrix stack values
* call this before a draw call if desired matrices are dirty