summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_pipe_blend.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-01 15:59:21 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-01 15:59:21 +0000
commit6981bbfabeeaf60111d737dd0d5a93496fd16758 (patch)
tree78fe2f09a69d5270e2c6f805f43197951007c744 /src/gallium/drivers/i965/brw_pipe_blend.c
parent15e7a3b8bb6771d24e5bde7805ea394f9ce0a3ec (diff)
i965g: more files compiling
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_blend.c')
-rw-r--r--src/gallium/drivers/i965/brw_pipe_blend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_blend.c b/src/gallium/drivers/i965/brw_pipe_blend.c
index cc9ee2e8dbc..f6da9254ef1 100644
--- a/src/gallium/drivers/i965/brw_pipe_blend.c
+++ b/src/gallium/drivers/i965/brw_pipe_blend.c
@@ -111,6 +111,8 @@ static void *brw_create_blend_state( struct pipe_context *pipe,
const struct pipe_blend_state *templ )
{
struct brw_blend_state *blend = CALLOC_STRUCT(brw_blend_state);
+ if (blend == NULL)
+ return NULL;
if (templ->logicop_enable) {
blend->cc2.logicop_enable = 1;