projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
541c9c0
)
meta: Fix up restoration of state if _mesa_map_pbo_source() fails.
author
Eric Anholt
<eric@anholt.net>
Sat, 13 Mar 2010 01:12:14 +0000
(17:12 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 16 Mar 2010 20:18:54 +0000
(13:18 -0700)
src/mesa/drivers/common/meta.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/meta.c
b/src/mesa/drivers/common/meta.c
index b29f58db729f370c88651865f77a0abba3c5c172..84a2a5fcb3a01f7fb9f12392eaa99e85e1718d7e 100644
(file)
--- a/
src/mesa/drivers/common/meta.c
+++ b/
src/mesa/drivers/common/meta.c
@@
-2067,8
+2067,10
@@
_mesa_meta_Bitmap(GLcontext *ctx,
}
bitmap1 = _mesa_map_pbo_source(ctx, &unpackSave, bitmap1);
- if (!bitmap1)
+ if (!bitmap1) {
+ _mesa_meta_end(ctx);
return;
+ }
bitmap8 = (GLubyte *) calloc(1, width * height);
if (bitmap8) {