OSDN Git Service

Implement GL_MAX_PROGRAM_TEXEL_OFFSET and GL_MAX_TEXTURE_LOD_BIAS
[android-x86/external-swiftshader.git] / src / Main / Config.hpp
index 7a754f3..b9256ea 100644 (file)
@@ -98,6 +98,7 @@ namespace sw
                MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 64,
                MIN_PROGRAM_TEXEL_OFFSET = -8,
                MAX_PROGRAM_TEXEL_OFFSET = 7,
+               MAX_TEXTURE_LOD = MIPMAP_LEVELS - 2,   // Trilinear accesses lod+1
                RENDERTARGETS = 8,
        };
 }