| From 13e67b147f790bca1d418bc6e5a2e2a6b9db9905 Mon Sep 17 00:00:00 2001 |
| From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= <marcheu@chromium.org> |
| Date: Tue, 9 Jul 2013 16:43:59 -0700 |
| Subject: [PATCH] Fix webgl regression where we can't start a webgl context. |
| |
| --- |
| src/mesa/main/fbobject.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c |
| index f59fdb1..e034443 100644 |
| --- a/src/mesa/main/fbobject.c |
| +++ b/src/mesa/main/fbobject.c |
| @@ -1868,7 +1868,7 @@ check_begin_texture_render(struct gl_context *ctx, struct gl_framebuffer *fb) |
| |
| for (i = 0; i < BUFFER_COUNT; i++) { |
| struct gl_renderbuffer_attachment *att = fb->Attachment + i; |
| - if (att->Texture && att->Renderbuffer->TexImage) { |
| + if (att->Texture && att->Texture->Image[att->CubeMapFace][att->TextureLevel]) { |
| ctx->Driver.RenderTexture(ctx, fb, att); |
| } |
| } |
| -- |
| 1.8.3 |
| |