Permalink
Browse files
Work around mir deficiencies
- Loading branch information...
Showing
with
5 additions
and
7 deletions.
-
+1
−1
Makefile
-
+4
−6
share/video.c
|
|
@@ -160,7 +160,7 @@ endif |
|
|
endif
|
|
|
endif
|
|
|
|
|
|
-#OGL_LIBS := -L/usr/lib/arm-linux-gnueabihf -lGLESv1_CM
|
|
|
+#OGL_LIBS := -L/usr/lib/i386-linux-gnu -lGLESv1_CM
|
|
|
OGL_LIBS := -L/usr/lib/arm-linux-gnueabihf -lGLESv1_CM
|
|
|
|
|
|
ifeq ($(PLATFORM),mingw)
|
|
|
|
|
|
@@ -176,12 +176,10 @@ int video_mode(int f, int w, int h) |
|
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, buffers);
|
|
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, samples);
|
|
|
|
|
|
- /* Require 16-bit double buffer with 16-bit depth buffer. */
|
|
|
-
|
|
|
- SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
|
|
|
- SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
|
|
|
- SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
|
|
|
- SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
|
|
|
+ SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
|
|
|
+ SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
|
|
|
+ SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
|
|
|
+ SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
|
|
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
|
|
|
|
|
/* Try to set the currently specified mode. */
|
|
|
|
0 comments on commit
1f50b5f