aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barker <jesse.barker@linaro.org>2012-12-12 11:45:49 -0800
committerJesse Barker <jesse.barker@linaro.org>2012-12-12 11:45:49 -0800
commit54de949c6af7d22e6e04bb5e3239a6c9fb363f10 (patch)
tree98c6fb9d61a5ed2dafd75aff17d0d3bfb3b51dc5
parent8eef3806a2aa39f2018d0bfbc6f34a1f8a5cda7e (diff)
downloadglmark2-54de949c6af7d22e6e04bb5e3239a6c9fb363f10.tar.gz
CanvasX11EGL: The type definitions between X.h and eglplatform.h make these
casts unnecessary.
-rw-r--r--src/canvas-x11-egl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/canvas-x11-egl.cpp b/src/canvas-x11-egl.cpp
index 0844b74..f7e548b 100644
--- a/src/canvas-x11-egl.cpp
+++ b/src/canvas-x11-egl.cpp
@@ -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 @@ CanvasX11EGL::get_xvisualinfo()
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;