DXGL r618 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r617
|
r618
|
r619
>
Date:
22:53, 26 September 2015
Author:
admin
Status:
new
Tags:
Comment:
Fix detaching a palette from a surface.
Modified paths:
/ddraw/glDirectDrawSurface.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDrawSurface.cpp
—
—
@@ -1507,8 +1507,9 @@
1508
1508
if (lpDDPalette)
1509
1509
{
1510
1510
if (!This->palette->texture) glDirectDrawPalette_CreateTexture(This->palette, This->ddInterface->renderer);
1511
+ glRenderer_SetTexturePalette(This->ddInterface->renderer, This->texture, This->palette->texture);
1511
1512
}
1512
- glRenderer_SetTexturePalette(This->ddInterface->renderer, This->texture, This->palette->texture);
1513
+ else glRenderer_SetTexturePalette(This->ddInterface->renderer, This->texture, NULL);
1513
1514
TRACE_EXIT(23,DD_OK);
1514
1515
return DD_OK;
1515
1516
}
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