PDA

View Full Version : GL_FLOAT



JefS
11-18-2010, 08:49 AM
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
};

Xmas
11-26-2010, 11:56 AM
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.