diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 254: CanvasX11EGL: The type definitions between X.h and eglplatform.h make these

Message ID 20121212194712.7626.89706.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Jesse Barker Dec. 12, 2012, 7:47 p.m. UTC
------------------------------------------------------------
revno: 254
committer: Jesse Barker <jesse.barker@linaro.org>
branch nick: trunk
timestamp: Wed 2012-12-12 11:45:49 -0800
message:
  CanvasX11EGL: The type definitions between X.h and eglplatform.h make these
  casts unnecessary.
modified:
  src/canvas-x11-egl.cpp


--
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/canvas-x11-egl.cpp'
--- src/canvas-x11-egl.cpp	2012-11-13 16:56:32 +0000
+++ src/canvas-x11-egl.cpp	2012-12-12 19:45:49 +0000
@@ -34,8 +34,7 @@ 
 bool
 CanvasX11EGL::init_gl_winsys()
 {
-    egl_.init_display(reinterpret_cast<EGLNativeDisplayType>(xdpy_),
-                      visual_config_);
+    egl_.init_display(xdpy_, visual_config_);
     return true;
 }
 
@@ -68,7 +67,7 @@ 
 bool
 CanvasX11EGL::make_current()
 {
-    egl_.init_surface(reinterpret_cast<EGLNativeWindowType>(xwin_));
+    egl_.init_surface(xwin_);
     if (!egl_.valid()) {
         Log::error("CanvasX11EGL: Invalid EGL state\n");
         return false;