From f23df03ea9d9d47ae0d78f08cd61ef99a0936b51 Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Mon, 3 Aug 2015 13:10:06 -0700 Subject: [PATCH] REsolve the bracket issue, --- libraries/gpu/src/gpu/GLBackendInput.cpp | 9 ++++----- libraries/gpu/src/gpu/GPUConfig.h | 3 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libraries/gpu/src/gpu/GLBackendInput.cpp b/libraries/gpu/src/gpu/GLBackendInput.cpp index 352cb0e7a0..eccd9dda49 100755 --- a/libraries/gpu/src/gpu/GLBackendInput.cpp +++ b/libraries/gpu/src/gpu/GLBackendInput.cpp @@ -169,11 +169,10 @@ void GLBackend::updateInput() { bool newState = newActivation[i]; if (newState != _input._attributeActivation[i]) { - if (newState) { - glEnableVertexAttribArray(i); - } else { - glDisableVertexAttribArray(i); - } + if (newState) { + glEnableVertexAttribArray(i); + } else { + glDisableVertexAttribArray(i); } (void) CHECK_GL_ERROR(); diff --git a/libraries/gpu/src/gpu/GPUConfig.h b/libraries/gpu/src/gpu/GPUConfig.h index f63474e13d..5ef17f3aeb 100644 --- a/libraries/gpu/src/gpu/GPUConfig.h +++ b/libraries/gpu/src/gpu/GPUConfig.h @@ -22,6 +22,7 @@ #include "../GL/glew.h" #define GPU_FEATURE_PROFILE GPU_CORE +#define GPU_TRANSFORM_PROFILE GPU_CORE #define GPU_INPUT_PROFILE GPU_CORE_41 #elif defined(WIN32) @@ -29,6 +30,7 @@ #include "../GL/wglew.h" #define GPU_FEATURE_PROFILE GPU_CORE +#define GPU_TRANSFORM_PROFILE GPU_CORE #define GPU_INPUT_PROFILE GPU_CORE_41 #elif defined(ANDROID) @@ -38,6 +40,7 @@ #include "../GL/glew.h" #define GPU_FEATURE_PROFILE GPU_CORE +#define GPU_TRANSFORM_PROFILE GPU_CORE #define GPU_INPUT_PROFILE GPU_CORE_41 #endif