Results 1 to 2 of 2

Thread: GL_FLOAT

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    1

    GL_FLOAT

    Code :
    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?

    Code :
    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
    };

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: GL_FLOAT

    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.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

Similar Threads

  1. GL_FLOAT in glTexImage2D?
    By CROMA in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 0
    Last Post: 06-08-2012, 04:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •