TextureConverter: Use integer math for swizzling

also move int(efb_coord) -> float(ogl_fb_coord) into WriteSampleColor
This commit is contained in:
degasus
2013-11-25 15:49:13 +01:00
parent bcb31b09d3
commit 6750a81972
3 changed files with 47 additions and 55 deletions

View File

@ -584,6 +584,9 @@ void ProgramShaderCache::CreateHeader ( void )
"#define float2 vec2\n"
"#define float3 vec3\n"
"#define float4 vec4\n"
"#define int2 ivec2\n"
"#define int3 ivec3\n"
"#define int4 ivec4\n"
// hlsl to glsl function translation
"#define frac fract\n"