Преглед изворни кода

meta: Fix up restoration of state if _mesa_map_pbo_source() fails.

tags/mesa-7.9-rc1
Eric Anholt пре 15 година
родитељ
комит
7cbb7051f4
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3
    1
      src/mesa/drivers/common/meta.c

+ 3
- 1
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) {

Loading…
Откажи
Сачувај