GL_FLOAT


glVertexPointer( 2, GL_FLOAT, sizeof( LOCAL_VERTEX ), vertex_table );

Why does this thing generate a GL_INVALID_ENUM ?

He doesn’t give the error when i try it with GL_SHORT.

Could this be a eglChooseConfig problem?

EGLint egl_config_list[] = {
EGL_RED_SIZE, red_bit_count,
EGL_GREEN_SIZE, green_bit_count,
EGL_BLUE_SIZE, blue_bit_count,
EGL_ALPHA_SIZE, alpha_bit_count,
EGL_DEPTH_SIZE, depth_bit_count,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
EGL_NONE
};

What OpenGL ES implementation are you using? If it only supports the Common Lite profile, you have to use fixed point data, floats are not supported on Common Lite.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.