diff --git a/renderdoc/driver/gl/gl_driver.cpp b/renderdoc/driver/gl/gl_driver.cpp index f2cb977c7..d2a97bfa0 100644 --- a/renderdoc/driver/gl/gl_driver.cpp +++ b/renderdoc/driver/gl/gl_driver.cpp @@ -2377,7 +2377,7 @@ bool WrappedOpenGL::EndFrameCapture(void *dev, void *wnd) // if the specified context isn't current, try and see if we've saved // an appropriate backbuffer image during capture. - if( (dev != NULL && prevctx.ctx != dev) || (wnd != 0 && prevctx.wnd != wnd) ) + if( (dev != NULL && prevctx.ctx != dev) || (wnd != 0 && (void *)prevctx.wnd != wnd) ) { auto it = m_BackbufferImages.find(wnd); if(it != m_BackbufferImages.end())