stw: ignore swapbuffer requests on singlebuffer
[mesa.git] / src / gallium / state_trackers / wgl / shared / stw_framebuffer.c
index f27f4cda2186e75295b7f5b0482ecf7b8e9f2aba..a601fc5646b78a04512b45c2bdbf098c5fa37160 100644 (file)
@@ -380,6 +380,9 @@ stw_swap_buffers(
    if (fb == NULL)
       return FALSE;
 
+   if (!(fb->pfi->pfd.dwFlags & PFD_DOUBLEBUFFER))
+      return TRUE;
+
    pipe_mutex_lock( fb->mutex );
 
    /* If we're swapping the buffer associated with the current context