DXGL r503 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r502‎ | r503 | r504 >
Date:13:57, 30 August 2014
Author:admin
Status:new
Tags:
Comment:
Set GL_TEXTURE_MAX_LEVEL and make mipmaps work!
Modified paths:
  • /ddraw/TextureManager.c (modified) (history)

Diff [purge]

Index: ddraw/TextureManager.c
@@ -459,6 +459,7 @@
460460 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, texture->magfilter);
461461 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, texture->wraps);
462462 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, texture->wrapt);
 463+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, texture->miplevel - 1);
463464 x = texture->width;
464465 y = texture->height;
465466 for (i = 0; i < texture->miplevel; i++)