diff src/video/win32/SDL_d3drender.c @ 1924:69217fdd2c0a

If the OpenGL renderer is selected for a non-OpenGL window, recreate the window with OpenGL enabled. Added OpenGL renderer error checking. Use fast-path texture formats in the OpenGL renderer.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 22 Jul 2006 21:02:57 +0000
parents f3399f779a1d
children 411bfb37082b
line wrap: on
line diff
--- a/src/video/win32/SDL_d3drender.c	Sat Jul 22 19:51:48 2006 +0000
+++ b/src/video/win32/SDL_d3drender.c	Sat Jul 22 21:02:57 2006 +0000
@@ -396,7 +396,6 @@
                                        PixelFormatToD3DFMT(texture->format),
                                        pool, &data->texture, NULL);
     if (FAILED(result)) {
-        SDL_free(data);
         D3D_SetError("CreateTexture()", result);
         return -1;
     }