aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-07-14 09:02:09 +0200
committermarha <marha@users.sourceforge.net>2011-07-14 09:02:09 +0200
commitd03a5f20114203fd00e0004659fd2617f4c03a32 (patch)
tree769d9c09953195385ac9c19aa31a1303b462d2d6 /mesalib/src/mesa/state_tracker/st_context.c
parent3b47b2c35227184c0eb6dcf6dee8b79c4f9d4474 (diff)
downloadvcxsrv-d03a5f20114203fd00e0004659fd2617f4c03a32.tar.gz
vcxsrv-d03a5f20114203fd00e0004659fd2617f4c03a32.tar.bz2
vcxsrv-d03a5f20114203fd00e0004659fd2617f4c03a32.zip
mesa xserver git update 14 july 2011
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_context.c')
-rw-r--r--mesalib/src/mesa/state_tracker/st_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_context.c b/mesalib/src/mesa/state_tracker/st_context.c
index 6eddbfc88..6d4bc544d 100644
--- a/mesalib/src/mesa/state_tracker/st_context.c
+++ b/mesalib/src/mesa/state_tracker/st_context.c
@@ -179,6 +179,9 @@ struct st_context *st_create_context(gl_api api, struct pipe_context *pipe,
st_init_driver_functions(&funcs);
ctx = _mesa_create_context(api, visual, shareCtx, &funcs, NULL);
+ if (!ctx) {
+ return NULL;
+ }
/* XXX: need a capability bit in gallium to query if the pipe
* driver prefers DP4 or MUL/MAD for vertex transformation.