From 3af930c5552e2d47a05eef62047dcab7452c7356 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut" Date: Thu, 21 Jun 2012 17:31:53 +0000 Subject: [PATCH] gsdx ogl: nvidia compiler is not happy with implicit cast... git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5322 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/res/tfx.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/res/tfx.glsl b/plugins/GSdx/res/tfx.glsl index 91d45d75a3..dda0f1b7b2 100644 --- a/plugins/GSdx/res/tfx.glsl +++ b/plugins/GSdx/res/tfx.glsl @@ -428,13 +428,13 @@ vec4 sample_color(vec2 st, float q) mat4 c; - if(PS_FMT & FMT_PAL) + if((PS_FMT & FMT_PAL) != 0) c = sample_4p(sample_4a(uv)); else c = sample_4c(uv); // PERF: see the impact of the exansion before/after the interpolation - for (uint i = 0; i < 4; i++) { + for (int i = 0; i < 4; i++) { if((PS_FMT & ~FMT_PAL) == FMT_16) { // FIXME GLSL any only support bvec so try to mix it with notEqual