1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Replace depricated texture2DLod by textureLod.

This commit is contained in:
Sergey Lipskiy 2015-03-16 22:07:23 +06:00
parent 395eb362f1
commit 7f5cbe9e91

View File

@ -533,12 +533,12 @@ static const char* fragment_shader_readtex =
"uniform lowp int uTextureFilterMode; \n"
"lowp vec4 filterNearest(in sampler2D tex, in mediump vec2 texCoord)\n"
"{ \n"
" return texture2DLod(tex, texCoord, 0.0); \n"
" return textureLod(tex, texCoord, 0.0); \n"
"} \n"
// 3 point texture filtering.
// Original author: ArthurCarvalho
// GLSL implementation: twinaphex, mupen64plus-libretro project.
"#define TEX_OFFSET(off) texture2DLod(tex, texCoord - (off)/texSize, 0.0) \n"
"#define TEX_OFFSET(off) textureLod(tex, texCoord - (off)/texSize, 0.0) \n"
"lowp vec4 filter3point(in sampler2D tex, in mediump vec2 texCoord) \n"
"{ \n"
" mediump vec2 texSize = vec2(textureSize(tex,0)); \n"