search for: opengl_setdata

Displaying 3 results from an estimated 3 matches for "opengl_setdata".

2008 Jul 10
0
[PATCH] ioemu : sdl without OpenGl fix
...Signed-off-by: Frédéric Guihéry <fred@cat-lan.com> diff -r 2d100fe81044 tools/ioemu/sdl.c --- a/tools/ioemu/sdl.c Wed Jul 09 16:00:05 2008 +0100 +++ b/tools/ioemu/sdl.c Thu Jul 10 14:58:05 2008 +0200 @@ -777,6 +777,8 @@ void sdl_display_init(DisplayState *ds, ds->dpy_setdata = opengl_setdata; else ds->dpy_setdata = sdl_setdata; +#else + ds->dpy_setdata = sdl_setdata; #endif sdl_resize(ds, 640, 400); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...absolute_enabled = 0; static int opengl_enabled; -static uint8_t bgr; - -static void sdl_colourdepth(DisplayState *ds, int depth); #ifdef CONFIG_OPENGL static GLint tex_format; static GLint tex_type; static GLuint texture_ref = 0; static GLint gl_format; +static uint8_t bgr; -static void opengl_setdata(DisplayState *ds, void *pixels) +static void opengl_setdata(DisplayState *ds) { glEnable(GL_TEXTURE_RECTANGLE_ARB); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); @@ -72,14 +71,13 @@ glDisable(GL_DEPTH_TEST); glDepthMask(GL_FALSE); glDisable(GL_CULL_FACE); -...
2009 Mar 02
0
[PATCH 3 of 13] remove bgr
...44 --- a/sdl.c +++ b/sdl.c @@ -52,6 +52,7 @@ static SDL_Cursor *sdl_cursor_normal; static SDL_Cursor *sdl_cursor_hidden; static int absolute_enabled = 0; static int opengl_enabled; +static uint8_t bgr; static void sdl_colourdepth(DisplayState *ds, int depth); @@ -119,7 +120,7 @@ static void opengl_setdata(DisplayState *ds, void *pixels) tex_type = GL_UNSIGNED_BYTE; break; case 32: - if (!ds->bgr) { + if (!bgr) { tex_format = GL_BGRA; tex_type = GL_UNSIGNED_BYTE; } else { @@ -275,9 +276,9 @@ sta...