mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 03:34:44 -05:00
Fixed to compile while the OpenGL renderer is under construction
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include "SDL_config.h"
|
||||
|
||||
#if SDL_VIDEO_OPENGL
|
||||
|
||||
#if 0
|
||||
#include "SDL_win32video.h"
|
||||
|
||||
/* OpenGL renderer implementation */
|
||||
@@ -539,6 +539,7 @@ GL_DestroyRenderer(SDL_Renderer * renderer)
|
||||
SDL_free(renderer);
|
||||
}
|
||||
|
||||
#endif /* 0 */
|
||||
#endif /* SDL_VIDEO_OPENGL */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
@@ -280,7 +280,7 @@ SDL_VideoInit(const char *driver_name, Uint32 flags)
|
||||
/* The software renderer is always available */
|
||||
for (i = 0; i < _this->num_displays; ++i) {
|
||||
if (_this->displays[i].num_render_drivers > 0) {
|
||||
#if SDL_VIDEO_OPENGL
|
||||
#if 0 //SDL_VIDEO_OPENGL
|
||||
SDL_AddRenderDriver(i, &GL_RenderDriver);
|
||||
#endif
|
||||
SDL_AddRenderDriver(i, &SW_RenderDriver);
|
||||
|
||||
Reference in New Issue
Block a user