comparison src/video/SDL_renderer_gles.c @ 5153:1435f8a6425c

Nobody is currently maintaining the QNX code, so removing it for now.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 21:40:03 -0800
parents be02be2ea897
children
comparison
equal deleted inserted replaced
5152:be02be2ea897 5153:1435f8a6425c
28 #include "SDL_sysvideo.h" 28 #include "SDL_sysvideo.h"
29 #include "SDL_pixels_c.h" 29 #include "SDL_pixels_c.h"
30 #include "SDL_rect_c.h" 30 #include "SDL_rect_c.h"
31 #include "SDL_yuv_sw_c.h" 31 #include "SDL_yuv_sw_c.h"
32 32
33 #if defined(__QNXNTO__) 33 #if defined(SDL_VIDEO_DRIVER_PANDORA)
34 /* Include QNX system header to check QNX version later */
35 #include <sys/neutrino.h>
36 #endif /* __QNXNTO__ */
37
38 #if defined(SDL_VIDEO_DRIVER_QNXGF) || \
39 defined(SDL_VIDEO_DRIVER_PHOTON) || \
40 defined(SDL_VIDEO_DRIVER_PANDORA)
41 34
42 /* Empty function stub to get OpenGL ES 1.x support without */ 35 /* Empty function stub to get OpenGL ES 1.x support without */
43 /* OpenGL ES extension GL_OES_draw_texture supported */ 36 /* OpenGL ES extension GL_OES_draw_texture supported */
44 GL_API void GL_APIENTRY 37 GL_API void GL_APIENTRY
45 glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height) 38 glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
46 { 39 {
47 return; 40 return;
48 } 41 }
49 42
50 #endif /* QNXGF || PHOTON || PANDORA */ 43 #endif /* PANDORA */
51 44
52 /* OpenGL ES 1.1 renderer implementation, based on the OpenGL renderer */ 45 /* OpenGL ES 1.1 renderer implementation, based on the OpenGL renderer */
53 46
54 static const float inv255f = 1.0f / 255.0f; 47 static const float inv255f = 1.0f / 255.0f;
55 48
227 renderer->window = window; 220 renderer->window = window;
228 renderer->driverdata = data; 221 renderer->driverdata = data;
229 222
230 renderer->info.flags = SDL_RENDERER_ACCELERATED; 223 renderer->info.flags = SDL_RENDERER_ACCELERATED;
231 224
232 #if defined(__QNXNTO__)
233 #if _NTO_VERSION<=641
234 /* QNX's OpenGL ES implementation is broken regarding */
235 /* packed textures support, affected versions 6.3.2, 6.4.0, 6.4.1 */
236 renderer->info.num_texture_formats = 2;
237 renderer->info.texture_formats[0] = SDL_PIXELFORMAT_ABGR8888;
238 renderer->info.texture_formats[1] = SDL_PIXELFORMAT_BGR24;
239 #endif /* _NTO_VERSION */
240 #endif /* __QNXNTO__ */
241
242 if (GLES_LoadFunctions(data) < 0) { 225 if (GLES_LoadFunctions(data) < 0) {
243 GLES_DestroyRenderer(renderer); 226 GLES_DestroyRenderer(renderer);
244 return NULL; 227 return NULL;
245 } 228 }
246 229