]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/desertpillars/source/desertpillars.cpp
Create a Device class to hold the graphics context
[libs/gl.git] / demos / desertpillars / source / desertpillars.cpp
index 53f0a86c72cee3c957b66c0f174a10036b983eab..532a94990120d98f4eb3fc55edfca8eb899de5d6 100644 (file)
@@ -23,10 +23,10 @@ DesertPillars::Options::Options()
 
 DesertPillars::DesertPillars(int, char **):
        window(display, opts.wnd_opts),
-       gl_ctx(window, opts.gl_opts),
+       gl_device(window, opts.gl_opts),
        keyboard(window),
        resources(&res_mgr),
-       view(window, gl_ctx),
+       view(window),
        camera(resources.get<GL::Camera>("Camera.camera")),
        lighting(resources.get<GL::Lighting>("Desert.lightn")),
        sphere(resources.get<GL::Object>("Sphere.object")),