Merge of lp:~glmark2-dev/glmark2/refract
Adds new SceneRefract, which performs a two interface refraction through an
object, as well as a surface reflection. The object (model), environment
(texture), and index of refraction of the object medium (index) are all
adjustable via command line options, but the default is to render the Stanford
Bunny against a background of the 'nasa1' texture with a refractive index of
1.2; the medium surrounding the object is assumed to be air/vacuum (index==1.0).
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 @@
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;