Просмотр исходного кода

LibGL: Implement `GL_LINEAR_MIPMAP_NEAREST` support

Jelle Raaijmakers 3 лет назад
Родитель
Сommit
b2e75929f4
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      Userland/Libraries/LibGL/SoftwareGLContext.cpp

+ 4 - 0
Userland/Libraries/LibGL/SoftwareGLContext.cpp

@@ -2807,6 +2807,10 @@ void SoftwareGLContext::sync_device_sampler_config()
             config.texture_min_filter = SoftGPU::TextureFilter::Nearest;
             config.mipmap_filter = SoftGPU::MipMapFilter::Nearest;
             break;
+        case GL_LINEAR_MIPMAP_NEAREST:
+            config.texture_min_filter = SoftGPU::TextureFilter::Nearest;
+            config.mipmap_filter = SoftGPU::MipMapFilter::Linear;
+            break;
         case GL_NEAREST_MIPMAP_LINEAR:
             config.texture_min_filter = SoftGPU::TextureFilter::Linear;
             config.mipmap_filter = SoftGPU::MipMapFilter::Nearest;