|
|
@@ -32,14 +32,14 @@ TypeHandle TinySDLGraphicsWindow::_type_handle;
|
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
TinySDLGraphicsWindow::
|
|
|
-TinySDLGraphicsWindow(GraphicsPipe *pipe,
|
|
|
- const string &name,
|
|
|
- const FrameBufferProperties &fb_prop,
|
|
|
- const WindowProperties &win_prop,
|
|
|
- int flags,
|
|
|
- GraphicsStateGuardian *gsg,
|
|
|
- GraphicsOutput *host) :
|
|
|
- GraphicsWindow(pipe, name, fb_prop, win_prop, flags, gsg, host)
|
|
|
+TinySDLGraphicsWindow(GraphicsEngine *engine, GraphicsPipe *pipe,
|
|
|
+ const string &name,
|
|
|
+ const FrameBufferProperties &fb_prop,
|
|
|
+ const WindowProperties &win_prop,
|
|
|
+ int flags,
|
|
|
+ GraphicsStateGuardian *gsg,
|
|
|
+ GraphicsOutput *host) :
|
|
|
+ GraphicsWindow(engine, pipe, name, fb_prop, win_prop, flags, gsg, host)
|
|
|
{
|
|
|
_screen = NULL;
|
|
|
_frame_buffer = NULL;
|
|
|
@@ -304,7 +304,7 @@ open_window() {
|
|
|
TinyGraphicsStateGuardian *tinygsg;
|
|
|
if (_gsg == 0) {
|
|
|
// There is no old gsg. Create a new one.
|
|
|
- tinygsg = new TinyGraphicsStateGuardian(_pipe, NULL);
|
|
|
+ tinygsg = new TinyGraphicsStateGuardian(_engine, _pipe, NULL);
|
|
|
_gsg = tinygsg;
|
|
|
|
|
|
} else {
|