src/video/SDL_renderer_gles.c
changeset 3161 494559cc723b
parent 3139 7f684f249ec9
child 3163 a252014ce27d
     1.1 --- a/src/video/SDL_renderer_gles.c	Thu May 28 09:39:14 2009 +0000
     1.2 +++ b/src/video/SDL_renderer_gles.c	Sun May 31 11:53:12 2009 +0000
     1.3 @@ -42,6 +42,14 @@
     1.4  
     1.5  #endif /* __QNXNTO__ */
     1.6  
     1.7 +#if SDL_VIDEO_DRIVER_PANDORA
     1.8 +GL_API void GL_APIENTRY
     1.9 +glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
    1.10 +{
    1.11 +    return;
    1.12 +}
    1.13 +#endif /* SDL_VIDEO_DRIVER_PANDORA */
    1.14 +
    1.15  /* OpenGL ES 1.1 renderer implementation, based on the OpenGL renderer */
    1.16  
    1.17  static const float inv255f = 1.0f / 255.0f;
    1.18 @@ -284,7 +292,10 @@
    1.19              renderer->info.flags |= SDL_RENDERER_SINGLEBUFFER;
    1.20          }
    1.21      }
    1.22 -
    1.23 +#if SDL_VIDEO_DRIVER_PANDORA
    1.24 +    data->GL_OES_draw_texture_supported = SDL_FALSE;
    1.25 +    data->useDrawTexture = SDL_FALSE;
    1.26 +#else
    1.27      if (SDL_GL_ExtensionSupported("GL_OES_draw_texture")) {
    1.28          data->GL_OES_draw_texture_supported = SDL_TRUE;
    1.29          data->useDrawTexture = SDL_TRUE;
    1.30 @@ -292,6 +303,7 @@
    1.31          data->GL_OES_draw_texture_supported = SDL_FALSE;
    1.32          data->useDrawTexture = SDL_FALSE;
    1.33      }
    1.34 +#endif
    1.35  
    1.36      data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
    1.37      renderer->info.max_texture_width = value;