Problem with eglSwapInterval

Started by
0 comments, last by V-man 15 years, 11 months ago
I'm using OpenGL ES in my Windows Mobile 6 application, and I wanted to enable vertical sync by using eglSwapInterval. The parameters I supply are: #1: m_display (a valid GLDisplay variable, created in prior steps) #2: 1 (the update interval) But the eglSwapInterval function returns GL_FALSE. I even tried changing the second parameter to 0, just to try turning vsync off, but that resulted in the same return value. I have not made anything special to the config attributes involving EGL_MAX_SWAP_INTERVAL or EGL_MIN_SWAP_INTERVAL. Do I need to declare these in the attributes, or do they simply use the default value (GL_DONT_CARE)?
Advertisement
I'm not an expert with GL|ES but there is the forum over at khronos.org
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement