diff options
author | marha <marha@users.sourceforge.net> | 2013-07-01 11:33:28 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-07-01 11:55:53 +0200 |
commit | 28d1f604563d9c738a4c5630364d0e6b4e9b13ff (patch) | |
tree | 1fbc6bd5cc5a1c950c6dfdf64c348f81604e9e9e /mesalib/src/mesa/program/prog_execute.c | |
parent | ced1a6b8f5a750fcd3b8d3d0d9bbdee830064e6c (diff) | |
download | vcxsrv-28d1f604563d9c738a4c5630364d0e6b4e9b13ff.tar.gz vcxsrv-28d1f604563d9c738a4c5630364d0e6b4e9b13ff.tar.bz2 vcxsrv-28d1f604563d9c738a4c5630364d0e6b4e9b13ff.zip |
mesa git update 1 Jul 2013
mesa commit bf95ca7de0c02a00a75d1d5e2693a33b68ff784d
Diffstat (limited to 'mesalib/src/mesa/program/prog_execute.c')
-rw-r--r-- | mesalib/src/mesa/program/prog_execute.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mesalib/src/mesa/program/prog_execute.c b/mesalib/src/mesa/program/prog_execute.c index b902006ef..560332a6e 100644 --- a/mesalib/src/mesa/program/prog_execute.c +++ b/mesalib/src/mesa/program/prog_execute.c @@ -145,7 +145,7 @@ get_src_register_pointer(const struct prog_src_register *source, _mesa_problem(NULL, "Invalid src register file %d in get_src_register_pointer()", source->File); - return NULL; + return ZeroVec; } } @@ -184,7 +184,7 @@ get_dst_register_pointer(const struct prog_dst_register *dest, _mesa_problem(NULL, "Invalid dest register file %d in get_dst_register_pointer()", dest->File); - return NULL; + return dummyReg; } } @@ -199,7 +199,6 @@ fetch_vector4(const struct prog_src_register *source, const struct gl_program_machine *machine, GLfloat result[4]) { const GLfloat *src = get_src_register_pointer(source, machine); - ASSERT(src); if (source->Swizzle == SWIZZLE_NOOP) { /* no swizzling */ @@ -302,7 +301,6 @@ fetch_vector1(const struct prog_src_register *source, const struct gl_program_machine *machine, GLfloat result[4]) { const GLfloat *src = get_src_register_pointer(source, machine); - ASSERT(src); result[0] = src[GET_SWZ(source->Swizzle, 0)]; |