diff --git a/panda/src/glxdisplay/glxGraphicsBuffer.cxx b/panda/src/glxdisplay/glxGraphicsBuffer.cxx index 56f35872a2..b67efc7309 100644 --- a/panda/src/glxdisplay/glxGraphicsBuffer.cxx +++ b/panda/src/glxdisplay/glxGraphicsBuffer.cxx @@ -98,7 +98,7 @@ begin_frame(FrameMode mode) { clear_cube_map_selection(); } - _gsg()->set_current_properties(&get_fb_properties()); + _gsg->set_current_properties(&get_fb_properties()); return _gsg->begin_frame(); } diff --git a/panda/src/glxdisplay/glxGraphicsWindow.cxx b/panda/src/glxdisplay/glxGraphicsWindow.cxx index 86955e251f..1a3b92b7b0 100644 --- a/panda/src/glxdisplay/glxGraphicsWindow.cxx +++ b/panda/src/glxdisplay/glxGraphicsWindow.cxx @@ -144,7 +144,7 @@ begin_frame(FrameMode mode) { clear_cube_map_selection(); } - _gsg()->set_current_properties(&get_fb_properties()); + _gsg->set_current_properties(&get_fb_properties()); return _gsg->begin_frame(); }