Skip to content

Commit 435918a

Browse files
committed
shaders: Port a sampler in common_functions.
1 parent 2984b64 commit 435918a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

res/gamedata/shaders/gl/common_functions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ gbuffer_data gbuffer_load_data( float2 tc, float2 pos2d, int iSample )
234234
gbd.N = float3(0,0,0);
235235

236236
#ifndef USE_MSAA
237-
float4 P = s_position.Sample( smp_nofilter, tc );
237+
float4 P = tex2D( s_position, tc );
238238
#else
239-
float4 P = s_position.Load( int3( pos2d, 0 ), iSample );
239+
float4 P = texelFetch( s_position, int2( pos2d ), 0, iSample );
240240
#endif
241241

242242
// 3d view space pos reconstruction math

0 commit comments

Comments
 (0)