mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 14:00:17 +01:00
wgl: Delete unused context param to swap
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28211>
This commit is contained in:
parent
f729fe50e5
commit
df638c023d
3 changed files with 5 additions and 6 deletions
|
|
@ -758,7 +758,7 @@ stw_framebuffer_swap_locked(HDC hdc, struct stw_framebuffer *fb)
|
|||
wait_swap_interval(fb, interval);
|
||||
}
|
||||
|
||||
return stw_st_swap_framebuffer_locked(hdc, ctx->st, fb->drawable);
|
||||
return stw_st_swap_framebuffer_locked(hdc, fb->drawable);
|
||||
}
|
||||
|
||||
BOOL APIENTRY
|
||||
|
|
|
|||
|
|
@ -437,7 +437,6 @@ stw_st_flush(struct st_context *st,
|
|||
*/
|
||||
static bool
|
||||
stw_st_framebuffer_present_locked(HDC hdc,
|
||||
struct st_context *st,
|
||||
struct pipe_frontend_drawable *drawable,
|
||||
enum st_attachment_type statt)
|
||||
{
|
||||
|
|
@ -510,7 +509,7 @@ stw_st_framebuffer_flush_front(struct st_context *st,
|
|||
|
||||
hDC = GetDC(stwfb->fb->hWnd);
|
||||
|
||||
ret = stw_st_framebuffer_present_locked(hDC, st, &stwfb->base, statt);
|
||||
ret = stw_st_framebuffer_present_locked(hDC, &stwfb->base, statt);
|
||||
|
||||
ReleaseDC(stwfb->fb->hWnd, hDC);
|
||||
|
||||
|
|
@ -569,7 +568,7 @@ stw_st_destroy_framebuffer_locked(struct pipe_frontend_drawable *drawable)
|
|||
* Swap the buffers of the given framebuffer.
|
||||
*/
|
||||
bool
|
||||
stw_st_swap_framebuffer_locked(HDC hdc, struct st_context *st,
|
||||
stw_st_swap_framebuffer_locked(HDC hdc,
|
||||
struct pipe_frontend_drawable *drawable)
|
||||
{
|
||||
struct stw_st_framebuffer *stwfb = stw_st_framebuffer(drawable);
|
||||
|
|
@ -605,7 +604,7 @@ stw_st_swap_framebuffer_locked(HDC hdc, struct st_context *st,
|
|||
stwfb->texture_mask = mask;
|
||||
|
||||
front = ST_ATTACHMENT_FRONT_LEFT;
|
||||
return stw_st_framebuffer_present_locked(hdc, st, &stwfb->base, front);
|
||||
return stw_st_framebuffer_present_locked(hdc, &stwfb->base, front);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ stw_st_flush(struct st_context *st, struct pipe_frontend_drawable *drawable,
|
|||
unsigned flags);
|
||||
|
||||
bool
|
||||
stw_st_swap_framebuffer_locked(HDC hdc, struct st_context *st,
|
||||
stw_st_swap_framebuffer_locked(HDC hdc,
|
||||
struct pipe_frontend_drawable *drawable);
|
||||
|
||||
struct pipe_resource *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue