[ioquake3] 27/39: OpenGL2: Faster mipmap generation.
Simon McVittie
smcv at debian.org
Sat Nov 5 20:26:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit 89701a1a45c19f67d0b129c971f5b87d206fc5dd
Author: SmileTheory <SmileTheory at gmail.com>
Date: Fri Oct 21 19:48:02 2016 -0700
OpenGL2: Faster mipmap generation.
---
code/renderergl2/tr_image.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/code/renderergl2/tr_image.c b/code/renderergl2/tr_image.c
index aecafc7..4666670 100644
--- a/code/renderergl2/tr_image.c
+++ b/code/renderergl2/tr_image.c
@@ -1980,8 +1980,16 @@ static void RawImage_UploadTexture(GLuint texture, byte *data, int x, int y, int
RawImage_UploadToRgtc2Texture(texture, miplevel, x, y, width, height, data);
else
qglTextureSubImage2DEXT(texture, target, miplevel, x, y, width, height, dataFormat, dataType, data);
+ }
- if (rgba8 && !lastMip && numMips < 2)
+ if (!lastMip && numMips < 2)
+ {
+ if (glRefConfig.framebufferObject)
+ {
+ qglGenerateTextureMipmapEXT(texture, target);
+ break;
+ }
+ else if (rgba8)
{
if (type == IMGTYPE_NORMAL || type == IMGTYPE_NORMALHEIGHT)
R_MipMapNormalHeight(data, data, width, height, glRefConfig.swizzleNormalmap);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list