|
@@ -91,10 +91,8 @@ begin_frame(FrameMode mode) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- wglGraphicsPipe *wglpipe;
|
|
|
|
|
- DCAST_INTO_R(wglpipe, _pipe, false);
|
|
|
|
|
- wglpipe->wgl_make_current(_pbuffer_dc, wglgsg->get_context(_pbuffer_dc),
|
|
|
|
|
- &_make_current_pcollector);
|
|
|
|
|
|
|
+ wglGraphicsPipe::wgl_make_current(_pbuffer_dc, wglgsg->get_context(_pbuffer_dc),
|
|
|
|
|
+ &_make_current_pcollector);
|
|
|
|
|
|
|
|
if (mode == FM_render) {
|
|
if (mode == FM_render) {
|
|
|
begin_render_texture();
|
|
begin_render_texture();
|
|
@@ -309,10 +307,8 @@ open_buffer() {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- wglGraphicsPipe *wglpipe;
|
|
|
|
|
- DCAST_INTO_R(wglpipe, _pipe, false);
|
|
|
|
|
- wglpipe->wgl_make_current(twindow_dc, wglgsg->get_context(twindow_dc),
|
|
|
|
|
- &_make_current_pcollector);
|
|
|
|
|
|
|
+ wglGraphicsPipe::wgl_make_current(twindow_dc, wglgsg->get_context(twindow_dc),
|
|
|
|
|
+ &_make_current_pcollector);
|
|
|
wglgsg->reset_if_new();
|
|
wglgsg->reset_if_new();
|
|
|
|
|
|
|
|
// Now that we have fully made a window and used that window to
|
|
// Now that we have fully made a window and used that window to
|
|
@@ -320,14 +316,14 @@ open_buffer() {
|
|
|
// This might fail if the pbuffer extensions are not supported.
|
|
// This might fail if the pbuffer extensions are not supported.
|
|
|
|
|
|
|
|
if (!make_pbuffer(twindow_dc)) {
|
|
if (!make_pbuffer(twindow_dc)) {
|
|
|
- wglpipe->wgl_make_current(0, 0, &_make_current_pcollector);
|
|
|
|
|
|
|
+ wglGraphicsPipe::wgl_make_current(0, 0, &_make_current_pcollector);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
_pbuffer_dc = wglgsg->_wglGetPbufferDCARB(_pbuffer);
|
|
_pbuffer_dc = wglgsg->_wglGetPbufferDCARB(_pbuffer);
|
|
|
|
|
|
|
|
- wglpipe->wgl_make_current(_pbuffer_dc, wglgsg->get_context(_pbuffer_dc),
|
|
|
|
|
- &_make_current_pcollector);
|
|
|
|
|
|
|
+ wglGraphicsPipe::wgl_make_current(_pbuffer_dc, wglgsg->get_context(_pbuffer_dc),
|
|
|
|
|
+ &_make_current_pcollector);
|
|
|
wglgsg->report_my_gl_errors();
|
|
wglgsg->report_my_gl_errors();
|
|
|
|
|
|
|
|
_is_valid = true;
|
|
_is_valid = true;
|