/* check the reference count */
fb->refcnt--;
if (fb->refcnt) {
- stw_framebuffer_release(fb);
+ stw_framebuffer_unlock(fb);
return;
}
stw_st_destroy_framebuffer_locked(fb->stfb);
- stw_framebuffer_release(fb);
+ stw_framebuffer_unlock(fb);
DeleteCriticalSection(&fb->mutex);
* of the client area via GetClientRect.
*/
stw_framebuffer_get_size(fb);
- stw_framebuffer_release(fb);
+ stw_framebuffer_unlock(fb);
}
}
}
*/
boolean bPbuffer = fb->bPbuffer;
- stw_framebuffer_release( fb );
+ stw_framebuffer_unlock( fb );
return bPbuffer;
}
return FALSE;
}
- stw_framebuffer_release( fb );
+ stw_framebuffer_unlock( fb );
/* Some applications mistakenly use the undocumented wglSetPixelFormat
* function instead of SetPixelFormat, so we call SetPixelFormat here to
fb = stw_framebuffer_from_hdc(hdc);
if (fb) {
iPixelFormat = fb->iPixelFormat;
- stw_framebuffer_release(fb);
+ stw_framebuffer_unlock(fb);
}
return iPixelFormat;
stw_framebuffer_update(fb);
stw_notify_current_locked(fb);
- stw_framebuffer_release(fb);
+ stw_framebuffer_unlock(fb);
return TRUE;
}
data.pPrivateData = (void *)res;
stw_notify_current_locked(fb);
- stw_framebuffer_release(fb);
+ stw_framebuffer_unlock(fb);
return stw_dev->callbacks.wglCbPresentBuffers(hdc, &data);
}
stw_framebuffer_update(fb);
stw_notify_current_locked(fb);
- stw_framebuffer_release(fb);
+ stw_framebuffer_unlock(fb);
return TRUE;
}
return FALSE;
if (!(fb->pfi->pfd.dwFlags & PFD_DOUBLEBUFFER)) {
- stw_framebuffer_release(fb);
+ stw_framebuffer_unlock(fb);
return TRUE;
}
/**
* Create a new framebuffer object which will correspond to the given HDC.
*
- * This function will acquire stw_framebuffer::mutex. stw_framebuffer_release
+ * This function will acquire stw_framebuffer::mutex. stw_framebuffer_unlock
* must be called when done
*/
struct stw_framebuffer *
/**
* Search a framebuffer with a matching HWND.
*
- * This function will acquire stw_framebuffer::mutex. stw_framebuffer_release
+ * This function will acquire stw_framebuffer::mutex. stw_framebuffer_unlock
* must be called when done
*/
struct stw_framebuffer *
/**
* Search a framebuffer with a matching HDC.
*
- * This function will acquire stw_framebuffer::mutex. stw_framebuffer_release
+ * This function will acquire stw_framebuffer::mutex. stw_framebuffer_unlock
* must be called when done
*/
struct stw_framebuffer *
* in the meanwhile.
*/
static inline void
-stw_framebuffer_release(struct stw_framebuffer *fb)
+stw_framebuffer_unlock(struct stw_framebuffer *fb)
{
assert(fb);
LeaveCriticalSection(&fb->mutex);
pipe_resource_reference(&out[i], stwfb->textures[statts[i]]);
}
- stw_framebuffer_release(stwfb->fb);
+ stw_framebuffer_unlock(stwfb->fb);
return TRUE;
}
stw_framebuffer_present_locked(hdc, stwfb->fb, resource);
}
else {
- stw_framebuffer_release(stwfb->fb);
+ stw_framebuffer_unlock(stwfb->fb);
}
return TRUE;