Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed to compile while the OpenGL renderer is under construction
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 19, 2006
1 parent 8e280e2 commit 29ed2e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/video/SDL_renderer_gl.c
Expand Up @@ -22,7 +22,7 @@
#include "SDL_config.h"

#if SDL_VIDEO_OPENGL

#if 0
#include "SDL_win32video.h"

/* OpenGL renderer implementation */
Expand Down Expand Up @@ -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: */
2 changes: 1 addition & 1 deletion src/video/SDL_video.c
Expand Up @@ -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);
Expand Down

0 comments on commit 29ed2e5

Please sign in to comment.