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
898c2c97
Commit
898c2c97
authored
Aug 19, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
Aug 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Don't store shader_handle's.
They're not stable across table resizes.
parent
f71fdecd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
d3d8_private.h
dlls/d3d8/d3d8_private.h
+2
-2
device.c
dlls/d3d8/device.c
+6
-6
No files found.
dlls/d3d8/d3d8_private.h
View file @
898c2c97
...
...
@@ -600,7 +600,7 @@ struct IDirect3DVertexShader8Impl {
const
IDirect3DVertexShader8Vtbl
*
lpVtbl
;
LONG
ref
;
shader_handle
*
handle
;
DWORD
handle
;
IDirect3DVertexDeclaration8
*
vertex_declaration
;
IWineD3DVertexShader
*
wineD3DVertexShader
;
};
...
...
@@ -623,7 +623,7 @@ typedef struct IDirect3DPixelShader8Impl {
const
IDirect3DPixelShader8Vtbl
*
lpVtbl
;
LONG
ref
;
shader_handle
*
handle
;
DWORD
handle
;
/* The device, to be replaced by an IDirect3DDeviceImpl */
IWineD3DPixelShader
*
wineD3DPixelShader
;
}
IDirect3DPixelShader8Impl
;
...
...
dlls/d3d8/device.c
View file @
898c2c97
...
...
@@ -1581,9 +1581,9 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexShader(LPDIRECT3DDEVICE8
IDirect3DVertexShader8_Release
((
IUnknown
*
)
object
);
hrc
=
E_OUTOFMEMORY
;
}
else
{
object
->
handle
=
handle
;
*
handle
=
object
;
*
ppShader
=
(
handle
-
This
->
shader_handles
)
+
VS_HIGHESTFIXEDFXF
+
1
;
object
->
handle
=
(
handle
-
This
->
shader_handles
)
+
VS_HIGHESTFIXEDFXF
+
1
;
*
ppShader
=
object
->
handle
;
load_local_constants
(
pDeclaration
,
object
->
wineD3DVertexShader
);
TRACE
(
"(%p) : returning %p (handle %#x)
\n
"
,
This
,
object
,
*
ppShader
);
...
...
@@ -1689,7 +1689,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetVertexShader(LPDIRECT3DDEVICE8 ifa
IDirect3DVertexShader8Impl
*
d3d8_shader
;
hrc
=
IWineD3DVertexShader_GetParent
(
pShader
,
(
IUnknown
**
)
&
d3d8_shader
);
IWineD3DVertexShader_Release
(
pShader
);
*
ppShader
=
(
d3d8_shader
->
handle
-
This
->
shader_handles
)
+
(
VS_HIGHESTFIXEDFXF
+
1
)
;
*
ppShader
=
d3d8_shader
->
handle
;
}
else
{
*
ppShader
=
0
;
hrc
=
D3D_OK
;
...
...
@@ -1889,9 +1889,9 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreatePixelShader(LPDIRECT3DDEVICE8 i
IDirect3DVertexShader8_Release
((
IUnknown
*
)
object
);
hrc
=
E_OUTOFMEMORY
;
}
else
{
object
->
handle
=
handle
;
*
handle
=
object
;
*
ppShader
=
(
handle
-
This
->
shader_handles
)
+
VS_HIGHESTFIXEDFXF
+
1
;
object
->
handle
=
(
handle
-
This
->
shader_handles
)
+
VS_HIGHESTFIXEDFXF
+
1
;
*
ppShader
=
object
->
handle
;
TRACE
(
"(%p) : returning %p (handle %#x)
\n
"
,
This
,
object
,
*
ppShader
);
}
}
...
...
@@ -1938,7 +1938,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShader(LPDIRECT3DDEVICE8 ifac
IDirect3DPixelShader8Impl
*
d3d8_shader
;
hrc
=
IWineD3DPixelShader_GetParent
(
object
,
(
IUnknown
**
)
&
d3d8_shader
);
IWineD3DPixelShader_Release
(
object
);
*
ppShader
=
(
d3d8_shader
->
handle
-
This
->
shader_handles
)
+
(
VS_HIGHESTFIXEDFXF
+
1
)
;
*
ppShader
=
d3d8_shader
->
handle
;
}
else
{
*
ppShader
=
(
DWORD
)
NULL
;
}
...
...
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