DXGL r657 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r656
|
r657
|
r658
>
Date:
00:33, 22 May 2016
Author:
admin
Status:
new
Tags:
Comment:
Fix GetDC on 8-bit offscreen surface
Get miplevel for Blt source
Modified paths:
/ddraw/glDirectDrawSurface.cpp
(modified) (
history
)
/ddraw/glRenderer.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDrawSurface.cpp
—
—
@@ -1052,7 +1052,7 @@
1053
1053
if (palette) pal = palette;
1054
1054
else pal = ddInterface->primary->palette;
1055
1055
}
1056
- error = glTexture_GetDC(this->texture, this->miplevel, lphDC, this->palette);
1056
+ error = glTexture_GetDC(this->texture, this->miplevel, lphDC, pal);
1057
1057
if (SUCCEEDED(error)) { TRACE_VAR("*lphDC", 14, *lphDC); }
1058
1058
TRACE_EXIT(23,error);
1059
1059
return error;
Index: ddraw/glRenderer.cpp
—
—
@@ -1397,7 +1397,7 @@
1398
1398
if (src)
1399
1399
{
1400
1400
src->GetSurfaceDesc(&ddsdSrc);
1401
- if (src->texture->levels[0].dirty & 1) glTexture__Upload(src->texture, 0);
1401
+ if (src->texture->levels[src->miplevel].dirty & 1) glTexture__Upload(src->texture, src->miplevel);
1402
1402
}
1403
1403
if(!lpSrcRect)
1404
1404
{
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