Ticket #7989: sdl_gl.diff

File sdl_gl.diff, 1.2 KB (added by SF/luke_br, 18 years ago)

OpenGL paletted/rgb texture fix

Line 
136a37,38
2> int glColorTable(int, int, int, int, int, void *){ return 0; }
3> int glGetColorTable(int, int, int, void *){ return 0; }
438c40,42
5< #define OGL_1_1
6---
7> bool OGL_1_1=true;
8> #else
9> bool OGL_1_1=false;
1042c46
11<
12---
13> FB2GL fb2gl;
14241c245
15< fb2gl_palette(i+start,b[0],b[1],b[2]);
16---
17> fb2gl.palette(i+start,b[0],b[1],b[2]);
18274,276c278,279
19< #ifdef OGL_1_1
20< gl_flags |= (FB2GL_RGBA | FB2GL_EXPAND);
21< #endif
22---
23> if (OGL_1_1)
24> gl_flags |= (FB2GL_RGBA | FB2GL_EXPAND);
25278c281
26< fb2gl_init(640,480,0,70,gl_flags);
27---
28> fb2gl.init(640,480,0,70,gl_flags);
29483c486
30< fb2gl_set_palette(_palette_changed_first,
31---
32> fb2gl.setPalette(_palette_changed_first,
33489c492
34< fb2gl_update(sdl_tmpscreen->pixels,320,200,320,0,_current_shake_pos);
35---
36> fb2gl.update(sdl_tmpscreen->pixels,320,200,320,0,_current_shake_pos);
37691,692c694,695
38< fb2gl_set_palette(0,256);
39< fb2gl_update(sdl_tmpscreen->pixels,320,200,320,0,_current_shake_pos);
40---
41> fb2gl.setPalette(0,256);
42> fb2gl.update(sdl_tmpscreen->pixels,320,200,320,0,_current_shake_pos);
43706c709
44< SDL_WM_ToggleFullScreen(screen);
45---
46> SDL_WM_ToggleFullScreen(fb2gl.screen);