diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 64: Make sure to set ClearDepth explicitly. Also, revert the attribs for red, green and blue size as ...

Message ID 20110721123634.17019.53534.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Jesse Barker July 21, 2011, 12:36 p.m. UTC
------------------------------------------------------------
revno: 64
committer: Jesse Barker <jesse.barker@linaro.org>
timestamp: Fri 2010-11-19 18:09:32 +0000
message:
  Make sure to set ClearDepth explicitly. Also, revert the attribs for red, green and blue size as it can return a config we're not setup to handle.
modified:
  src/screen-sdl-glesv2.cpp
  src/sdlgles/attribs.inc


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/screen-sdl-glesv2.cpp'
--- src/screen-sdl-glesv2.cpp	2010-11-19 12:03:25 +0000
+++ src/screen-sdl-glesv2.cpp	2010-11-19 18:09:32 +0000
@@ -65,6 +65,7 @@ 
 #endif
 
     glClearColor(0.0f, 0.0f, 0.0f, 0.5f);
+    glClearDepthf(1.0f);
     glEnable(GL_DEPTH_TEST);
     glDepthFunc(GL_LEQUAL);
     glEnable(GL_CULL_FACE);

=== modified file 'src/sdlgles/attribs.inc'
--- src/sdlgles/attribs.inc	2010-11-19 11:54:36 +0000
+++ src/sdlgles/attribs.inc	2010-11-19 18:09:32 +0000
@@ -1,8 +1,8 @@ 
 /* List of EGL attributes we care about */
 A(0,	EGL_BUFFER_SIZE,			1)
-A(1,	EGL_RED_SIZE,				1)
-A(2,	EGL_GREEN_SIZE,				1)
-A(3,	EGL_BLUE_SIZE,				1)
+A(1,	EGL_RED_SIZE,				0)
+A(2,	EGL_GREEN_SIZE,				0)
+A(3,	EGL_BLUE_SIZE,				0)
 A(4,	EGL_LUMINANCE_SIZE,			0)
 A(5,	EGL_ALPHA_SIZE,				0)
 A(6,	EGL_CONFIG_CAVEAT,			EGL_DONT_CARE)