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
7175367a
Commit
7175367a
authored
Aug 30, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Avoid some needless casts.
parent
f7b84fe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
shader.c
dlls/d3dx9_36/shader.c
+12
-12
No files found.
dlls/d3dx9_36/shader.c
View file @
7175367a
...
...
@@ -328,13 +328,13 @@ HRESULT WINAPI D3DXAssembleShaderFromFileW(const WCHAR *filename, const D3DXMACR
HRESULT
WINAPI
D3DXAssembleShaderFromResourceA
(
HMODULE
module
,
const
char
*
resource
,
const
D3DXMACRO
*
defines
,
ID3DXInclude
*
include
,
DWORD
flags
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
)
{
void
*
buffer
;
HRSRC
res
;
LPCSTR
buffer
;
DWORD
len
;
if
(
!
(
res
=
FindResourceA
(
module
,
resource
,
(
LPCSTR
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
(
LPVOID
*
)
&
buffer
,
&
len
)))
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXAssembleShader
(
buffer
,
len
,
defines
,
include
,
flags
,
shader
,
error_messages
);
...
...
@@ -343,13 +343,13 @@ HRESULT WINAPI D3DXAssembleShaderFromResourceA(HMODULE module, const char *resou
HRESULT
WINAPI
D3DXAssembleShaderFromResourceW
(
HMODULE
module
,
const
WCHAR
*
resource
,
const
D3DXMACRO
*
defines
,
ID3DXInclude
*
include
,
DWORD
flags
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
)
{
void
*
buffer
;
HRSRC
res
;
LPCSTR
buffer
;
DWORD
len
;
if
(
!
(
res
=
FindResourceW
(
module
,
resource
,
(
LPCWSTR
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
(
LPVOID
*
)
&
buffer
,
&
len
)))
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXAssembleShader
(
buffer
,
len
,
defines
,
include
,
flags
,
shader
,
error_messages
);
...
...
@@ -448,13 +448,13 @@ HRESULT WINAPI D3DXCompileShaderFromResourceA(HMODULE module, const char *resour
ID3DXInclude
*
include
,
const
char
*
entrypoint
,
const
char
*
profile
,
DWORD
flags
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
,
ID3DXConstantTable
**
constant_table
)
{
void
*
buffer
;
HRSRC
res
;
LPCSTR
buffer
;
DWORD
len
;
if
(
!
(
res
=
FindResourceA
(
module
,
resource
,
(
LPCSTR
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
(
LPVOID
*
)
&
buffer
,
&
len
)))
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXCompileShader
(
buffer
,
len
,
defines
,
include
,
entrypoint
,
profile
,
flags
,
shader
,
error_messages
,
constant_table
);
...
...
@@ -464,13 +464,13 @@ HRESULT WINAPI D3DXCompileShaderFromResourceW(HMODULE module, const WCHAR *resou
ID3DXInclude
*
include
,
const
char
*
entrypoint
,
const
char
*
profile
,
DWORD
flags
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
,
ID3DXConstantTable
**
constant_table
)
{
void
*
buffer
;
HRSRC
res
;
LPCSTR
buffer
;
DWORD
len
;
if
(
!
(
res
=
FindResourceW
(
module
,
resource
,
(
LPCWSTR
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
(
LPVOID
*
)
&
buffer
,
&
len
)))
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXCompileShader
(
buffer
,
len
,
defines
,
include
,
entrypoint
,
profile
,
flags
,
shader
,
error_messages
,
constant_table
);
...
...
@@ -534,13 +534,13 @@ HRESULT WINAPI D3DXPreprocessShaderFromFileW(const WCHAR *filename, const D3DXMA
HRESULT
WINAPI
D3DXPreprocessShaderFromResourceA
(
HMODULE
module
,
const
char
*
resource
,
const
D3DXMACRO
*
defines
,
ID3DXInclude
*
include
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
)
{
void
*
buffer
;
HRSRC
res
;
const
char
*
buffer
;
DWORD
len
;
if
(
!
(
res
=
FindResourceA
(
module
,
resource
,
(
LPCSTR
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
(
LPVOID
*
)
&
buffer
,
&
len
)))
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXPreprocessShader
(
buffer
,
len
,
defines
,
include
,
shader
,
error_messages
);
...
...
@@ -549,13 +549,13 @@ HRESULT WINAPI D3DXPreprocessShaderFromResourceA(HMODULE module, const char *res
HRESULT
WINAPI
D3DXPreprocessShaderFromResourceW
(
HMODULE
module
,
const
WCHAR
*
resource
,
const
D3DXMACRO
*
defines
,
ID3DXInclude
*
include
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
)
{
void
*
buffer
;
HRSRC
res
;
const
char
*
buffer
;
DWORD
len
;
if
(
!
(
res
=
FindResourceW
(
module
,
resource
,
(
const
WCHAR
*
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
(
void
**
)
&
buffer
,
&
len
)))
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXPreprocessShader
(
buffer
,
len
,
defines
,
include
,
shader
,
error_messages
);
...
...
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