DXGL r327 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r326
|
r327
|
r328
>
Date:
17:03, 17 February 2013
Author:
admin
Status:
new
Tags:
Comment:
Remove broken texcoord wrap optimization.
Set render target for new IDirect3DDevice object.
Set viewport for IDirect3DDevice::Execute.
Modified paths:
/ddraw/glDirect3DDevice.cpp
(modified) (
history
)
/ddraw/glDirectDrawSurface.cpp
(modified) (
history
)
/ddraw/glutil.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirect3DDevice.cpp
—
—
@@ -2114,6 +2114,14 @@
2115
2115
if(!this) return DDERR_INVALIDOBJECT;
2116
2116
if(!lpDirect3DExecuteBuffer) return DDERR_INVALIDPARAMS;
2117
2117
if(!lpDirect3DViewport) return DDERR_INVALIDPARAMS;
2118
+ LPDIRECT3DVIEWPORT3 vp;
2119
+ lpDirect3DViewport->QueryInterface(IID_IDirect3DViewport3,(void**)&vp);
2120
+ if(FAILED(SetCurrentViewport(vp)))
2121
+ {
2122
+ vp->Release();
2123
+ return DDERR_INVALIDPARAMS;
2124
+ }
2125
+ vp->Release();
2118
2126
D3DEXECUTEBUFFERDESC desc;
2119
2127
D3DEXECUTEDATA data;
2120
2128
HRESULT err = ((glDirect3DExecuteBuffer*)lpDirect3DExecuteBuffer)->ExecuteLock(&desc,&data);
Index: ddraw/glDirectDrawSurface.cpp
—
—
@@ -464,6 +464,7 @@
465
465
return E_NOINTERFACE;
466
466
}
467
467
HRESULT ret = tmpdev->QueryInterface(IID_IDirect3DDevice,ppvObj);
468
+ tmpdev->SetRenderTarget(this,0);
468
469
tmpdev->Release();
469
470
tmpd3d->Release();
470
471
return ret;
Index: ddraw/glutil.cpp
—
—
@@ -172,8 +172,8 @@
173
173
default:
174
174
return;
175
175
}
176
- if(texwrap[level*2+coord] == wrapmode) return;
177
- else
176
+ //if(texwrap[level*2+coord] == wrapmode) return;
177
+ //else
178
178
{
179
179
texwrap[level*2+coord] = wrapmode;
180
180
//int currtexture = texlevel;
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