|
|
@@ -47,14 +47,14 @@ TypeHandle glxGraphicsWindow::_type_handle;
|
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
glxGraphicsWindow::
|
|
|
-glxGraphicsWindow(GraphicsPipe *pipe,
|
|
|
+glxGraphicsWindow(GraphicsEngine *engine, 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)
|
|
|
+ GraphicsWindow(engine, pipe, name, fb_prop, win_prop, flags, gsg, host)
|
|
|
{
|
|
|
glxGraphicsPipe *glx_pipe;
|
|
|
DCAST_INTO_V(glx_pipe, _pipe);
|
|
|
@@ -616,7 +616,7 @@ open_window() {
|
|
|
glxGraphicsStateGuardian *glxgsg;
|
|
|
if (_gsg == 0) {
|
|
|
// There is no old gsg. Create a new one.
|
|
|
- glxgsg = new glxGraphicsStateGuardian(_pipe, NULL);
|
|
|
+ glxgsg = new glxGraphicsStateGuardian(_engine, _pipe, NULL);
|
|
|
glxgsg->choose_pixel_format(_fb_properties, glx_pipe->get_display(), glx_pipe->get_screen(), false);
|
|
|
_gsg = glxgsg;
|
|
|
} else {
|
|
|
@@ -624,7 +624,7 @@ open_window() {
|
|
|
// new one that shares with the old gsg.
|
|
|
DCAST_INTO_R(glxgsg, _gsg, false);
|
|
|
if (!glxgsg->get_fb_properties().subsumes(_fb_properties)) {
|
|
|
- glxgsg = new glxGraphicsStateGuardian(_pipe, glxgsg);
|
|
|
+ glxgsg = new glxGraphicsStateGuardian(_engine, _pipe, glxgsg);
|
|
|
glxgsg->choose_pixel_format(_fb_properties, glx_pipe->get_display(), glx_pipe->get_screen(), false);
|
|
|
_gsg = glxgsg;
|
|
|
}
|