[Mesa-dev] [PATCH 1/6] main: Check for NULL in texturesubimage.
Laura Ekstrand
laura at jlekstrand.net
Fri Feb 27 16:07:12 PST 2015
---
src/mesa/main/teximage.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 6e45cc9..dfad9ed 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -3688,6 +3688,8 @@ texturesubimage(struct gl_context *ctx, GLuint dims,
/* Copy in each face. */
for (i = 0; i < 6; ++i) {
texImage = texObj->Image[i][level];
+ if (!texImage)
+ return;
_mesa_texture_sub_image(ctx, 3, texObj, texImage, texObj->Target,
level, xoffset, yoffset, zoffset,
width, height, 1, format,
--
2.1.0
More information about the mesa-dev
mailing list