ソースを参照

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) {

読み込み中…
キャンセル
保存