DXGL r503 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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 @@
460
460
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, texture->magfilter);
461
461
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, texture->wraps);
462
462
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, texture->wrapt);
463
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, texture->miplevel - 1);
463
464
x = texture->width;
464
465
y = texture->height;
465
466
for (i = 0; i < texture->miplevel; i++)
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version