projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5823f99
)
move surface pitch calculation so it always gets updated
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 14:53:06 +0000
(07:53 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 14:53:06 +0000
(07:53 -0700)
src/mesa/state_tracker/st_cb_fbo.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_fbo.c
b/src/mesa/state_tracker/st_cb_fbo.c
index 6b9023c41042b03e336be34ccf16e46aded07504..0ee5f45aae33c3a60abfe11be1eab68f737a00d8 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_fbo.c
+++ b/
src/mesa/state_tracker/st_cb_fbo.c
@@
-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);