mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
move surface pitch calculation so it always gets updated
This commit is contained in:
parent
5823f99d0f
commit
ee6b39cfe6
1 changed files with 3 additions and 2 deletions
|
|
@ -105,10 +105,11 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
|
|||
if (!strb->surface)
|
||||
return GL_FALSE;
|
||||
strb->surface->cpp = cpp;
|
||||
strb->surface->pitch = pipe->winsys->surface_pitch(pipe->winsys, cpp,
|
||||
width, flags);
|
||||
}
|
||||
|
||||
strb->surface->pitch = pipe->winsys->surface_pitch(pipe->winsys, cpp,
|
||||
width, flags);
|
||||
|
||||
/* loop here since mapping is refcounted */
|
||||
while (strb->surface->map)
|
||||
pipe_surface_unmap(strb->surface);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue