Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: media-libs/mesa/files/7.9-glbufferdata-0size.patch

Issue 5925002: Switch to Mesa 7.9. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git@master
Patch Set: Switch to Mesa 7.9 version 2. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 From 6e2e136428b97d2424ebe626a30d7237015f7ea3 Mon Sep 17 00:00:00 2001
2 From: Brian Paul <brianp@vmware.com>
3 Date: Tue, 09 Nov 2010 19:24:49 +0000
4 Subject: mesa: no-op glBufferSubData() on size==0
5
6 Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31439
7
8 NOTE: this is a candidate for the 7.9 branch
9 ---
10 diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
11 index 0a68008..76f8259 100644
12 --- a/src/mesa/main/bufferobj.c
13 +++ b/src/mesa/main/bufferobj.c
14 @@ -1189,6 +1189,9 @@ _mesa_BufferSubDataARB(GLenum target, GLintptrARB offset,
15 return;
16 }
17
18 + if (size == 0)
19 + return;
20 +
21 bufObj->Written = GL_TRUE;
22
23 ASSERT(ctx->Driver.BufferSubData);
24 --
25 cgit v0.8.3-6-g21f6
OLDNEW
« no previous file with comments | « media-libs/mesa/files/7.9-get-maxsamples.patch ('k') | media-libs/mesa/files/7.9-gldeletebuffers.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698