From 16af00d51568ddcb4301bffd490d26d342314bd7 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Mon, 15 Dec 2014 23:05:16 +0100 Subject: [PATCH] GeometryShaderGen: Use signed integers for the texture offset flags. --- Source/Core/VideoCommon/ConstantManager.h | 2 +- Source/Core/VideoCommon/GeometryShaderGen.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/ConstantManager.h b/Source/Core/VideoCommon/ConstantManager.h index 00f82d681e..83c97b2598 100644 --- a/Source/Core/VideoCommon/ConstantManager.h +++ b/Source/Core/VideoCommon/ConstantManager.h @@ -50,5 +50,5 @@ struct GeometryShaderConstants float4 stereoparams; float4 lineptwidth; float4 viewport; - u32 texoffsetflags[8]; + s32 texoffsetflags[8]; }; diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp index 37f75ad0d0..a8bd784b1b 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.cpp +++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp @@ -75,7 +75,7 @@ static inline void GenerateGeometryShader(T& out, u32 primitive_type, API_TYPE A "\tfloat4 " I_STEREOPARAMS";\n" "\tfloat4 " I_LINEPTWIDTH";\n" "\tfloat4 " I_VIEWPORT";\n" - "\tuint " I_TEXOFFSETFLAGS"[8];\n" + "\tint " I_TEXOFFSETFLAGS"[8];\n" "};\n"); uid_data->numTexGens = bpmem.genMode.numtexgens;