mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-14 07:11:15 +02:00
REsolve the bracket issue,
This commit is contained in:
parent
32c253453b
commit
f23df03ea9
2 changed files with 7 additions and 5 deletions
|
@ -169,11 +169,10 @@ void GLBackend::updateInput() {
|
||||||
bool newState = newActivation[i];
|
bool newState = newActivation[i];
|
||||||
if (newState != _input._attributeActivation[i]) {
|
if (newState != _input._attributeActivation[i]) {
|
||||||
|
|
||||||
if (newState) {
|
if (newState) {
|
||||||
glEnableVertexAttribArray(i);
|
glEnableVertexAttribArray(i);
|
||||||
} else {
|
} else {
|
||||||
glDisableVertexAttribArray(i);
|
glDisableVertexAttribArray(i);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
(void) CHECK_GL_ERROR();
|
(void) CHECK_GL_ERROR();
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include "../GL/glew.h"
|
#include "../GL/glew.h"
|
||||||
|
|
||||||
#define GPU_FEATURE_PROFILE GPU_CORE
|
#define GPU_FEATURE_PROFILE GPU_CORE
|
||||||
|
#define GPU_TRANSFORM_PROFILE GPU_CORE
|
||||||
#define GPU_INPUT_PROFILE GPU_CORE_41
|
#define GPU_INPUT_PROFILE GPU_CORE_41
|
||||||
|
|
||||||
#elif defined(WIN32)
|
#elif defined(WIN32)
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
#include "../GL/wglew.h"
|
#include "../GL/wglew.h"
|
||||||
|
|
||||||
#define GPU_FEATURE_PROFILE GPU_CORE
|
#define GPU_FEATURE_PROFILE GPU_CORE
|
||||||
|
#define GPU_TRANSFORM_PROFILE GPU_CORE
|
||||||
#define GPU_INPUT_PROFILE GPU_CORE_41
|
#define GPU_INPUT_PROFILE GPU_CORE_41
|
||||||
|
|
||||||
#elif defined(ANDROID)
|
#elif defined(ANDROID)
|
||||||
|
@ -38,6 +40,7 @@
|
||||||
#include "../GL/glew.h"
|
#include "../GL/glew.h"
|
||||||
|
|
||||||
#define GPU_FEATURE_PROFILE GPU_CORE
|
#define GPU_FEATURE_PROFILE GPU_CORE
|
||||||
|
#define GPU_TRANSFORM_PROFILE GPU_CORE
|
||||||
#define GPU_INPUT_PROFILE GPU_CORE_41
|
#define GPU_INPUT_PROFILE GPU_CORE_41
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue