Skip to content

Commit

Permalink
Merge pull request aras-p#3 from cmcevoy/master
Browse files Browse the repository at this point in the history
A couple minor glsl-optimizer patches
  • Loading branch information
aras-p committed Oct 17, 2011
2 parents b543103 + edcb87a commit a6cc56e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/c99/stdbool.h
Expand Up @@ -35,7 +35,7 @@
#define bool _Bool

/* For compilers that don't have the builtin _Bool type. */
#if defined(_MSC_VER) || (__STDC_VERSION__ < 199901L && __GNUC__ < 3)
#if (defined(_MSC_VER) || (__STDC_VERSION__ < 199901L && __GNUC__ < 3)) && !defined(_lint)
typedef unsigned char _Bool;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/glsl/ir_print_glsl_visitor.cpp
Expand Up @@ -208,7 +208,7 @@ void ir_print_glsl_visitor::print_precision (ir_instruction* ir)
{
if (!this->use_precision)
return;
if (ir->type && !ir->type->is_float())
if (ir->type && !ir->type->is_float() && (!ir->type->is_array() || !ir->type->element_type()->is_float()))
return;
glsl_precision prec = precision_from_ir(ir);
if (prec == glsl_precision_high || prec == glsl_precision_undefined)
Expand Down

0 comments on commit a6cc56e

Please sign in to comment.