Hi gregory, Am 2017-03-17 10:25, schrieb Gregory Hainaut:
diff --git a/src/mesa/main/marshal.c b/src/mesa/main/marshal.c index f8cad30..43a70d4 100644 --- a/src/mesa/main/marshal.c +++ b/src/mesa/main/marshal.c @@ -214,6 +218,12 @@ track_vbo_binding(struct gl_context *ctx, GLenum target, GLuint buffer) */ glthread->element_array_is_vbo = (buffer != 0); break; + case GL_PIXEL_UNPACK_BUFFER: + glthread->pixel_unpack_buffer_bound = (buffer != 0); + break; + case GL_PIXEL_PACK_BUFFER: + glthread->pixel_pack_buffer_bound = (buffer != 0); + break; } }
I wonder what shall happen if buffer is not 0, but neither a valid buffer object. So the glBindBuffer call will fail, and there would still be no buffer bound.
The comment above this function explains it very well. degasus _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev