diff --git a/src/frame.c b/src/frame.c index 6a60296..fa16959 100644 --- a/src/frame.c +++ b/src/frame.c @@ -6,6 +6,8 @@ #include #include +#define USE_ES_SHADERS 0 + static const GLfloat textureVertices[] = { 0.0f, 1.0f, @@ -110,7 +112,7 @@ bool lvrcInitFrameResources(struct lvrcInstance * instance) //float warp_scale = 0.305f; // test float warp_adj = 1.0f; -#if 0 +#if USE_ES_SHADERS const char* vertex; ohmd_gets(OHMD_GLSL_ES_DISTORTION_VERT_SRC, &vertex); const char* fragment; @@ -172,9 +174,11 @@ static void prepare(GLuint texture) static void draw() { +#if USE_ES_SHADERS glVertexAttribPointer(glGetAttribLocation(shader, "coords"), 2, GL_FLOAT, 0, 0, textureVertices); glEnableVertexAttribArray(glGetAttribLocation(shader, "coords")); assert(GL_NO_ERROR == glGetError()); +#endif // USE_ES_SHADERS glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); assert(GL_NO_ERROR == glGetError());