Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9253e0e3
Commit
9253e0e3
authored
Jul 13, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Jul 13, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up some comments and formatting.
parent
1ed9bac8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
52 additions
and
30 deletions
+52
-30
basetexture.c
dlls/wined3d/basetexture.c
+1
-0
cubetexture.c
dlls/wined3d/cubetexture.c
+2
-2
device.c
dlls/wined3d/device.c
+0
-0
directx.c
dlls/wined3d/directx.c
+4
-2
drawprim.c
dlls/wined3d/drawprim.c
+0
-1
indexbuffer.c
dlls/wined3d/indexbuffer.c
+4
-0
resource.c
dlls/wined3d/resource.c
+5
-2
stateblock.c
dlls/wined3d/stateblock.c
+2
-0
surface.c
dlls/wined3d/surface.c
+23
-17
swapchain.c
dlls/wined3d/swapchain.c
+2
-0
texture.c
dlls/wined3d/texture.c
+0
-0
utils.c
dlls/wined3d/utils.c
+5
-4
vertexbuffer.c
dlls/wined3d/vertexbuffer.c
+3
-0
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+0
-0
vertexshader.c
dlls/wined3d/vertexshader.c
+0
-1
volume.c
dlls/wined3d/volume.c
+1
-1
volumetexture.c
dlls/wined3d/volumetexture.c
+0
-0
wined3d_main.c
dlls/wined3d/wined3d_main.c
+0
-0
No files found.
dlls/wined3d/basetexture.c
View file @
9253e0e3
...
...
@@ -278,6 +278,7 @@ UINT WINAPI IWineD3DBaseTextureImpl_GetTextureDimensions(IWineD3DBaseTexture *if
static
const
IWineD3DBaseTextureVtbl
IWineD3DBaseTexture_Vtbl
=
{
/* IUnknown */
IWineD3DBaseTextureImpl_QueryInterface
,
IWineD3DBaseTextureImpl_AddRef
,
IWineD3DBaseTextureImpl_Release
,
...
...
dlls/wined3d/cubetexture.c
View file @
9253e0e3
...
...
@@ -298,7 +298,7 @@ const IWineD3DCubeTextureVtbl IWineD3DCubeTexture_Vtbl =
IWineD3DCubeTextureImpl_GetPriority
,
IWineD3DCubeTextureImpl_PreLoad
,
IWineD3DCubeTextureImpl_GetType
,
/*
base t
exture */
/*
IWineD3DBaseT
exture */
IWineD3DCubeTextureImpl_SetLOD
,
IWineD3DCubeTextureImpl_GetLOD
,
IWineD3DCubeTextureImpl_GetLevelCount
,
...
...
@@ -310,7 +310,7 @@ const IWineD3DCubeTextureVtbl IWineD3DCubeTexture_Vtbl =
IWineD3DCubeTextureImpl_BindTexture
,
IWineD3DCubeTextureImpl_UnBindTexture
,
IWineD3DCubeTextureImpl_GetTextureDimensions
,
/*
cube texture */
/*
IWineD3DCubeTexture */
IWineD3DCubeTextureImpl_GetLevelDesc
,
IWineD3DCubeTextureImpl_GetCubeMapSurface
,
IWineD3DCubeTextureImpl_LockRect
,
...
...
dlls/wined3d/device.c
View file @
9253e0e3
This diff is collapsed.
Click to expand it.
dlls/wined3d/directx.c
View file @
9253e0e3
...
...
@@ -782,7 +782,7 @@ HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapter, WINE
pMode
->
Width
=
800
;
pMode
->
Height
=
600
;
pMode
->
RefreshRate
=
D3DADAPTER_DEFAULT
;
pMode
->
Format
=
(
Format
==
D3DFMT_UNKNOWN
)
?
D3DFMT_A8R8G8B8
:
Format
;
pMode
->
Format
=
(
Format
==
D3DFMT_UNKNOWN
)
?
D3DFMT_A8R8G8B8
:
Format
;
bpp
=
32
;
#endif
TRACE_
(
d3d_caps
)(
"W %d H %d rr %d fmt (%x - %s) bpp %u
\n
"
,
pMode
->
Width
,
pMode
->
Height
,
...
...
@@ -1482,7 +1482,7 @@ HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, D3DDEVT
The following fields apply to d3d9 only
------------------------------------------------ */
if
(
This
->
dxVersion
>
8
)
{
GLint
max_buffers
=
1
;
GLint
max_buffers
=
1
;
FIXME
(
"Caps support for directx9 is nonexistent at the moment!
\n
"
);
*
pCaps
->
DevCaps2
=
0
;
/* TODO: D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES */
...
...
@@ -1665,9 +1665,11 @@ HRESULT WINAPI IWineD3DImpl_GetParent(IWineD3D *iface, IUnknown **pParent) {
const
IWineD3DVtbl
IWineD3D_Vtbl
=
{
/* IUnknown */
IWineD3DImpl_QueryInterface
,
IWineD3DImpl_AddRef
,
IWineD3DImpl_Release
,
/* IWineD3D */
IWineD3DImpl_GetParent
,
IWineD3DImpl_GetAdapterCount
,
IWineD3DImpl_RegisterSoftwareDevice
,
...
...
dlls/wined3d/drawprim.c
View file @
9253e0e3
...
...
@@ -868,7 +868,6 @@ void drawStridedFast(IWineD3DDevice *iface, Direct3DVertexStridedData *sd,
DWORD
fvf
=
(
sd
->
u
.
s
.
blendWeights
.
dwType
-
D3DDECLTYPE_FLOAT1
)
+
1
;
int
numBlends
=
((
fvf
&
D3DFVF_POSITION_MASK
)
>>
1
)
-
2
+
((
FALSE
==
(
fvf
&
D3DFVF_LASTBETA_UBYTE4
))
?
0
:
-
1
);
/*FIXME("TODO\n");*/
/* Note dwType == float3 or float4 == 2 or 3 */
VTRACE
((
"glWeightPointerARB(%ld, GL_FLOAT, %ld, %p)
\n
"
,
numBlends
,
...
...
dlls/wined3d/indexbuffer.c
View file @
9253e0e3
...
...
@@ -4,6 +4,7 @@
* Copyright 2002-2004 Jason Edmeades
* Copyright 2003-2004 Raphael Junqueira
* Copyright 2004 Christian Costa
* Copyright 2005 Oliver Stieber
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -128,9 +129,11 @@ HRESULT WINAPI IWineD3DIndexBufferImpl_GetDesc(IWineD3DIndexBuffer *ifac
const
IWineD3DIndexBufferVtbl
IWineD3DIndexBuffer_Vtbl
=
{
/* IUnknown */
IWineD3DIndexBufferImpl_QueryInterface
,
IWineD3DIndexBufferImpl_AddRef
,
IWineD3DIndexBufferImpl_Release
,
/* IWineD3DResource */
IWineD3DIndexBufferImpl_GetParent
,
IWineD3DIndexBufferImpl_GetDevice
,
IWineD3DIndexBufferImpl_SetPrivateData
,
...
...
@@ -140,6 +143,7 @@ const IWineD3DIndexBufferVtbl IWineD3DIndexBuffer_Vtbl =
IWineD3DIndexBufferImpl_GetPriority
,
IWineD3DIndexBufferImpl_PreLoad
,
IWineD3DIndexBufferImpl_GetType
,
/* IWineD3DIndexBuffer */
IWineD3DIndexBufferImpl_Lock
,
IWineD3DIndexBufferImpl_Unlock
,
IWineD3DIndexBufferImpl_GetDesc
...
...
dlls/wined3d/resource.c
View file @
9253e0e3
...
...
@@ -4,6 +4,7 @@
* Copyright 2002-2004 Jason Edmeades
* Copyright 2003-2004 Raphael Junqueira
* Copyright 2004 Christian Costa
* Copyright 2005 Oliver Stieber
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -26,7 +27,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d
);
#define GLINFO_LOCATION ((IWineD3DImpl *)(((IWineD3DDeviceImpl *)This->resource.wineD3DDevice)->wineD3D))->gl_info
/* I
Direct
3DResource IUnknown parts follow: */
/* I
WineD
3DResource IUnknown parts follow: */
HRESULT
WINAPI
IWineD3DResourceImpl_QueryInterface
(
IWineD3DResource
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IWineD3DResourceImpl
*
This
=
(
IWineD3DResourceImpl
*
)
iface
;
...
...
@@ -71,7 +72,7 @@ void IWineD3DResourceImpl_CleanUp(IWineD3DResource *iface){
This
->
resource
.
allocatedMemory
=
0
;
}
/* I
Direct
3DResource Interface follow: */
/* I
WineD
3DResource Interface follow: */
HRESULT
WINAPI
IWineD3DResourceImpl_GetDevice
(
IWineD3DResource
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
IWineD3DResourceImpl
*
This
=
(
IWineD3DResourceImpl
*
)
iface
;
TRACE
(
"(%p) : returning %p
\n
"
,
This
,
This
->
resource
.
wineD3DDevice
);
...
...
@@ -128,9 +129,11 @@ HRESULT WINAPI IWineD3DResourceImpl_GetParent(IWineD3DResource *iface, IUnknown
static
const
IWineD3DResourceVtbl
IWineD3DResource_Vtbl
=
{
/* IUnknown */
IWineD3DResourceImpl_QueryInterface
,
IWineD3DResourceImpl_AddRef
,
IWineD3DResourceImpl_Release
,
/* IWineD3DResource */
IWineD3DResourceImpl_GetParent
,
IWineD3DResourceImpl_GetDevice
,
IWineD3DResourceImpl_SetPrivateData
,
...
...
dlls/wined3d/stateblock.c
View file @
9253e0e3
...
...
@@ -714,9 +714,11 @@ HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStateBlock*
const
IWineD3DStateBlockVtbl
IWineD3DStateBlock_Vtbl
=
{
/* IUnknown */
IWineD3DStateBlockImpl_QueryInterface
,
IWineD3DStateBlockImpl_AddRef
,
IWineD3DStateBlockImpl_Release
,
/* IWineD3DStateBlock */
IWineD3DStateBlockImpl_GetParent
,
IWineD3DStateBlockImpl_GetDevice
,
IWineD3DStateBlockImpl_Capture
,
...
...
dlls/wined3d/surface.c
View file @
9253e0e3
...
...
@@ -116,7 +116,7 @@ void WINAPI IWineD3DSurfaceImpl_PreLoad(IWineD3DSurface *iface) {
TRACE
(
"Passing to conatiner
\n
"
);
IWineD3DBaseTexture_PreLoad
(
baseTexture
);
IWineD3DBaseTexture_Release
(
baseTexture
);
}
else
{
}
else
{
TRACE
(
"(%p) : About to load surface
\n
"
,
This
);
ENTER_GL
();
#if 0 /* TODO: context manager support */
...
...
@@ -131,7 +131,7 @@ void WINAPI IWineD3DSurfaceImpl_PreLoad(IWineD3DSurface *iface) {
checkGLcall
(
"glBindTexture"
);
IWineD3DSurface_LoadTexture
(
iface
);
/* This is where we should be reducing the amount of GLMemoryUsed */
}
else
{
}
else
{
if
(
This
->
glDescription
.
level
==
0
)
{
glBindTexture
(
This
->
glDescription
.
target
,
This
->
glDescription
.
textureName
);
checkGLcall
(
"glBindTexture"
);
...
...
@@ -158,10 +158,12 @@ void WINAPI IWineD3DSurfaceImpl_PreLoad(IWineD3DSurface *iface) {
}
D3DRESOURCETYPE
WINAPI
IWineD3DSurfaceImpl_GetType
(
IWineD3DSurface
*
iface
)
{
TRACE
(
"(%p) : calling resourceimpl_GetType
\n
"
,
iface
);
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_GetParent
(
IWineD3DSurface
*
iface
,
IUnknown
**
pParent
)
{
TRACE
(
"(%p) : calling resourceimpl_GetParent
\n
"
,
iface
);
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
}
...
...
@@ -202,7 +204,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_GetDesc(IWineD3DSurface *iface, WINED3DSURFAC
return
D3D_OK
;
}
void
WINAPI
IWineD3DSurfaceImpl_SetGlTextureDesc
(
IWineD3DSurface
*
iface
,
UINT
textureName
,
int
target
){
void
WINAPI
IWineD3DSurfaceImpl_SetGlTextureDesc
(
IWineD3DSurface
*
iface
,
UINT
textureName
,
int
target
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
TRACE
(
"(%p) : setting textureName %u, target %i
\n
"
,
This
,
textureName
,
target
);
if
(
This
->
glDescription
.
textureName
==
0
&&
textureName
!=
0
)
{
...
...
@@ -213,7 +215,7 @@ void WINAPI IWineD3DSurfaceImpl_SetGlTextureDesc(IWineD3DSurface *iface, UINT te
This
->
glDescription
.
target
=
target
;
}
void
WINAPI
IWineD3DSurfaceImpl_GetGlDesc
(
IWineD3DSurface
*
iface
,
glDescriptor
**
glDescription
){
void
WINAPI
IWineD3DSurfaceImpl_GetGlDesc
(
IWineD3DSurface
*
iface
,
glDescriptor
**
glDescription
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
TRACE
(
"(%p) : returning %p
\n
"
,
This
,
&
This
->
glDescription
);
*
glDescription
=
&
This
->
glDescription
;
...
...
@@ -250,6 +252,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
/*return D3DERR_INVALIDCALL; */
}
if
(
This
->
resource
.
usage
&
D3DUSAGE_RENDERTARGET
)
{
IWineD3DSurface_GetContainer
(
iface
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
);
if
(
swapchain
!=
NULL
||
iface
==
myDevice
->
renderTarget
||
iface
==
myDevice
->
depthStencilBuffer
)
{
...
...
@@ -267,6 +270,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
}
swapchain
=
NULL
;
}
}
else
{
TRACE
(
"(%p) : rect@%p flags(%08lx), output lockedRect@%p, memory@%p
\n
"
,
This
,
pRect
,
Flags
,
pLockedRect
,
This
->
resource
.
allocatedMemory
);
}
...
...
@@ -302,7 +306,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
This
->
lockedRect
.
bottom
=
pRect
->
bottom
;
}
if
(
This
->
nonpow2
)
{
if
(
This
->
nonpow2
)
{
TRACE
(
"Locking non-power 2 texture
\n
"
);
}
...
...
@@ -407,31 +411,31 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
if
(
iface
==
myDevice
->
renderTarget
||
iface
==
swapchain
->
backBuffer
)
{
TRACE
(
"locking back buffer
\n
"
);
glReadBuffer
(
GL_BACK
);
}
else
if
(
iface
==
swapchain
->
frontBuffer
)
{
}
else
if
(
iface
==
swapchain
->
frontBuffer
)
{
TRACE
(
"locking front
\n
"
);
glReadBuffer
(
GL_FRONT
);
}
else
if
(
iface
==
myDevice
->
depthStencilBuffer
)
{
}
else
if
(
iface
==
myDevice
->
depthStencilBuffer
)
{
FIXME
(
"Stencil Buffer lock unsupported for now
\n
"
);
}
else
{
}
else
{
FIXME
(
"(%p) Shouldn't have got here!
\n
"
,
This
);
glReadBuffer
(
GL_BACK
);
}
}
else
if
(
swapchain
!=
NULL
)
{
}
else
if
(
swapchain
!=
NULL
)
{
IWineD3DSwapChainImpl
*
implSwapChain
;
IWineD3DDevice_GetSwapChain
((
IWineD3DDevice
*
)
myDevice
,
0
,
(
IWineD3DSwapChain
**
)
&
implSwapChain
);
if
(
swapchain
->
glCtx
==
implSwapChain
->
render_ctx
&&
swapchain
->
drawable
==
implSwapChain
->
win
)
{
/* This will fail for the implicit swapchain, which is why there needs to be a context manager */
if
(
iface
==
swapchain
->
backBuffer
)
{
glReadBuffer
(
GL_BACK
);
}
else
if
(
iface
==
swapchain
->
frontBuffer
)
{
}
else
if
(
iface
==
swapchain
->
frontBuffer
)
{
glReadBuffer
(
GL_FRONT
);
}
else
if
(
iface
==
myDevice
->
depthStencilBuffer
)
{
FIXME
(
"Stencil Buffer lock unsupported for now
\n
"
);
}
else
{
}
else
{
FIXME
(
"Should have got here!
\n
"
);
glReadBuffer
(
GL_BACK
);
}
}
else
{
}
else
{
/* We need to switch contexts to be able to read the buffer!!! */
FIXME
(
"The buffer requested isn't in the current openGL context
\n
"
);
notInContext
=
TRUE
;
...
...
@@ -468,7 +472,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
BOOL ati_performance_hack = FALSE;
ati_performance_hack = (This->lockedRect.bottom - This->lockedRect.top > 10) || (This->lockedRect.right - This->lockedRect.left > 10)? TRUE: FALSE;
#endif
if
((
This
->
lockedRect
.
left
==
0
&&
This
->
lockedRect
.
top
==
0
&&
if
((
This
->
lockedRect
.
left
==
0
&&
This
->
lockedRect
.
top
==
0
&&
This
->
lockedRect
.
right
==
This
->
currentDesc
.
Width
&&
This
->
lockedRect
.
bottom
==
This
->
currentDesc
.
Height
))
{
glReadPixels
(
0
,
0
,
...
...
@@ -477,7 +481,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
This
->
glDescription
.
glFormat
,
This
->
glDescription
.
glType
,
(
char
*
)
pLockedRect
->
pBits
);
}
else
if
(
This
->
lockedRect
.
left
==
0
&&
This
->
lockedRect
.
right
==
This
->
currentDesc
.
Width
)
{
}
else
if
(
This
->
lockedRect
.
left
==
0
&&
This
->
lockedRect
.
right
==
This
->
currentDesc
.
Width
)
{
glReadPixels
(
0
,
This
->
lockedRect
.
top
,
This
->
currentDesc
.
Width
,
...
...
@@ -507,7 +511,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
}
else
if
(
D3DUSAGE_DEPTHSTENCIL
&
This
->
resource
.
usage
)
{
/* stencil surfaces */
if
(
!
messages
&
1
)
{
if
(
!
messages
&
1
)
{
FIXME
(
"TODO stencil depth surface locking surf%p usage(%lu)
\n
"
,
This
,
This
->
resource
.
usage
);
/*
...
...
@@ -519,7 +523,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
)
*/
messages
|=
1
;
messages
|=
1
;
}
}
else
{
FIXME
(
"unsupported locking to surface surf@%p usage(%lu)
\n
"
,
This
,
This
->
resource
.
usage
);
...
...
@@ -540,7 +544,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
TRACE
(
"Making container dirty
\n
"
);
IWineD3DBaseTexture_SetDirty
(
pBaseTexture
,
TRUE
);
IWineD3DBaseTexture_Release
(
pBaseTexture
);
}
else
{
}
else
{
TRACE
(
"Surface is standalone, no need to dirty the container
\n
"
);
}
}
...
...
@@ -563,6 +567,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
return
D3DERR_INVALIDCALL
;
}
if
(
D3DUSAGE_RENDERTARGET
&
This
->
resource
.
usage
)
{
IWineD3DSurface_GetContainer
(
iface
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
);
if
((
swapchain
!=
NULL
)
&&
iface
==
swapchain
->
backBuffer
)
{
...
...
@@ -574,6 +579,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
}
else
if
(
iface
==
myDevice
->
renderTarget
)
{
buffername
=
"renderTarget"
;
}
}
if
(
swapchain
!=
NULL
)
{
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
...
...
dlls/wined3d/swapchain.c
View file @
9253e0e3
...
...
@@ -442,9 +442,11 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetGammaRamp(IWineD3DSwapChain *iface, D3DG
IWineD3DSwapChainVtbl
IWineD3DSwapChain_Vtbl
=
{
/* IUnknown */
IWineD3DSwapChainImpl_QueryInterface
,
IWineD3DSwapChainImpl_AddRef
,
IWineD3DSwapChainImpl_Release
,
/* IWineD3DSwapChain */
IWineD3DSwapChainImpl_GetParent
,
IWineD3DSwapChainImpl_GetDevice
,
IWineD3DSwapChainImpl_Present
,
...
...
dlls/wined3d/texture.c
View file @
9253e0e3
dlls/wined3d/utils.c
View file @
9253e0e3
...
...
@@ -4,6 +4,7 @@
* Copyright 2002-2004 Jason Edmeades
* Copyright 2003-2004 Raphael Junqueira
* Copyright 2004 Christian Costa
* Copyright 2005 Oliver Stieber
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -233,8 +234,8 @@ const char* debug_d3drenderstate(DWORD state) {
D3DSTATE_TO_STR
(
WINED3DRS_COLORWRITEENABLE
);
D3DSTATE_TO_STR
(
WINED3DRS_TWEENFACTOR
);
D3DSTATE_TO_STR
(
WINED3DRS_BLENDOP
);
D3DSTATE_TO_STR
(
WINED3DRS_POSITION
ORDER
);
D3DSTATE_TO_STR
(
WINED3DRS_NORMAL
ORDER
);
D3DSTATE_TO_STR
(
WINED3DRS_POSITION
DEGREE
);
D3DSTATE_TO_STR
(
WINED3DRS_NORMAL
DEGREE
);
#undef D3DSTATE_TO_STR
default:
FIXME
(
"Unrecognized %lu render state!
\n
"
,
state
);
...
...
@@ -341,7 +342,7 @@ GLenum StencilOp(DWORD op) {
#endif
#if !defined(combine_ext)
void
set_tex_op
(
LPDIRECT3DDEVICE8
iface
,
BOOL
isAlpha
,
int
Stage
,
D3DTEXTUREOP
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
)
void
set_tex_op
(
IWineD3DDevice
*
iface
,
BOOL
isAlpha
,
int
Stage
,
D3DTEXTUREOP
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
)
{
FIXME
(
"Requires opengl combine extensions to work
\n
"
);
return
;
...
...
@@ -1855,7 +1856,7 @@ int D3DFmtMakeGlCfg(D3DFORMAT BackBufferFormat, D3DFORMAT StencilBufferFormat, i
break
;
}
}
else
{
/* it the device doesn't support the 'exact' format, try to find something close */
}
else
{
/* it the device doesn't support the 'exact' format, try to find something close */
switch
(
StencilBufferFormat
)
{
case
WINED3DFMT_D16_LOCKABLE
:
case
WINED3DFMT_D16
:
...
...
dlls/wined3d/vertexbuffer.c
View file @
9253e0e3
...
...
@@ -130,9 +130,11 @@ HRESULT WINAPI IWineD3DVertexBufferImpl_GetDesc(IWineD3DVertexBuffer *if
const
IWineD3DVertexBufferVtbl
IWineD3DVertexBuffer_Vtbl
=
{
/* IUnknown */
IWineD3DVertexBufferImpl_QueryInterface
,
IWineD3DVertexBufferImpl_AddRef
,
IWineD3DVertexBufferImpl_Release
,
/* IWineD3DResource */
IWineD3DVertexBufferImpl_GetParent
,
IWineD3DVertexBufferImpl_GetDevice
,
IWineD3DVertexBufferImpl_SetPrivateData
,
...
...
@@ -142,6 +144,7 @@ const IWineD3DVertexBufferVtbl IWineD3DVertexBuffer_Vtbl =
IWineD3DVertexBufferImpl_GetPriority
,
IWineD3DVertexBufferImpl_PreLoad
,
IWineD3DVertexBufferImpl_GetType
,
/* IWineD3DVertexBuffer */
IWineD3DVertexBufferImpl_Lock
,
IWineD3DVertexBufferImpl_Unlock
,
IWineD3DVertexBufferImpl_GetDesc
...
...
dlls/wined3d/vertexdeclaration.c
View file @
9253e0e3
dlls/wined3d/vertexshader.c
View file @
9253e0e3
...
...
@@ -733,7 +733,6 @@ HRESULT WINAPI IDirect3DVertexShaderImpl_ExecuteSW(IDirect3DVertexShaderImpl* vs
if (pToken[0] & D3DSP_WRITEMASK_2) p[0]->z = d.z;
if (pToken[0] & D3DSP_WRITEMASK_3) p[0]->w = d.w;
}
#if 0
TRACE_VSVECTOR(output->oPos);
TRACE_VSVECTOR(output->oD[0]);
...
...
dlls/wined3d/volume.c
View file @
9253e0e3
...
...
@@ -61,7 +61,7 @@ ULONG WINAPI IWineD3DVolumeImpl_Release(IWineD3DVolume *iface) {
}
/* ****************************************************
IWineD3D
Surfac
e IWineD3DResource parts follow
IWineD3D
Volum
e IWineD3DResource parts follow
**************************************************** */
HRESULT
WINAPI
IWineD3DVolumeImpl_GetParent
(
IWineD3DVolume
*
iface
,
IUnknown
**
pParent
)
{
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
...
...
dlls/wined3d/volumetexture.c
View file @
9253e0e3
dlls/wined3d/wined3d_main.c
View file @
9253e0e3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment