DXGL r319 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r318
|
r319
|
r320
>
Date:
00:27, 8 February 2013
Author:
admin
Status:
new
Tags:
Comment:
Fix IDirect3DSurface initialization.
Ignore DDPF_LUMINANCE and DDPF_ALPHA surface formats in old EnumTextureFormats calls.
Modified paths:
/ddraw/glDirect3DDevice.cpp
(modified) (
history
)
/ddraw/glDirect3DTexture.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirect3DDevice.cpp
—
—
@@ -2372,6 +2372,8 @@
2373
2373
2374
2374
HRESULT WINAPI EnumTex2(LPDDPIXELFORMAT ddpf, LPVOID lpUserArg)
2375
2375
{
2376
+ if(ddpf->dwFlags & DDPF_LUMINANCE) return D3DENUMRET_OK;
2377
+ if(ddpf->dwFlags & DDPF_ALPHA) return D3DENUMRET_OK;
2376
2378
int *args = (int*)lpUserArg;
2377
2379
LPD3DENUMTEXTUREFORMATSCALLBACK callback = (LPD3DENUMTEXTUREFORMATSCALLBACK)args[0];
2378
2380
DDSURFACEDESC ddsd;
Index: ddraw/glDirect3DTexture.cpp
—
—
@@ -88,7 +88,8 @@
89
89
90
90
glDirect3DTexture1::glDirect3DTexture1(glDirectDrawSurface7 *glDDS7)
91
91
{
92
- glDDS7->Release();
92
+ this->glDDS7 = glDDS7;
93
+ refcount = 1;
93
94
}
94
95
glDirect3DTexture1::~glDirect3DTexture1()
95
96
{
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