From 46d5fb576a37bdd50cd4a2795b27852b4c8a8250 Mon Sep 17 00:00:00 2001 From: Yuanhan Liu Date: Wed, 19 Oct 2011 11:20:18 +0800 Subject: [PATCH] mesa: handle PBO access error in display list mode Simply generate GL_INVALID_OPERATION error at display list mode. As explained by Brian, we are going to access PBO data at compile time. No need to defer the error at execution time. Signed-off-by: Yuanhan Liu Reviewed-by: Brian Paul --- src/mesa/main/dlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 625649e9d9e..d901bddf883 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -939,7 +939,9 @@ unpack_image(struct gl_context *ctx, GLuint dimensions, } return image; } + /* bad access! */ + _mesa_error(ctx, GL_INVALID_OPERATION, "invalid PBO access"); return NULL; } -- 2.30.2