Skip to content
Permalink
Browse files
C buildfix
  • Loading branch information
flibitijibibo committed Apr 25, 2020
1 parent 63b705a commit 2fb9d8b9f288b10be00ca5810c14addb00bc53d2

File 1 of 1 in 2fb9d8b

@@ -2316,10 +2316,10 @@ void emit_SPIRV_finalize(Context *ctx)
spv_emit_vs_main_end(ctx);
spv_emit_func_lit(ctx);

bool emit_vec4 = ctx->uniform_float4_count > 0 && ctx->spirv.uniform_arrays.idvec4;
bool emit_ivec4 = ctx->uniform_int4_count > 0 && ctx->spirv.uniform_arrays.idivec4;
bool emit_bool = ctx->uniform_bool_count > 0 && ctx->spirv.uniform_arrays.idbool;
bool emit_any = emit_vec4 | emit_ivec4 | emit_bool;
uint8 emit_vec4 = ctx->uniform_float4_count > 0 && ctx->spirv.uniform_arrays.idvec4;
uint8 emit_ivec4 = ctx->uniform_int4_count > 0 && ctx->spirv.uniform_arrays.idivec4;
uint8 emit_bool = ctx->uniform_bool_count > 0 && ctx->spirv.uniform_arrays.idbool;
uint8 emit_any = emit_vec4 | emit_ivec4 | emit_bool;
if (ctx->spirv.mode == SPIRV_MODE_GL)
{
if (emit_vec4)

0 comments on commit 2fb9d8b

Please sign in to comment.