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
9cf78880
Commit
9cf78880
authored
Jul 09, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix some cast-qual warnings.
parent
95d9b127
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
baseshader.c
dlls/wined3d/baseshader.c
+4
-4
buffer.c
dlls/wined3d/buffer.c
+1
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/baseshader.c
View file @
9cf78880
...
...
@@ -750,7 +750,7 @@ HRESULT shader_get_registers_used(IWineD3DBaseShader *iface, const struct wined3
}
reg_maps
->
loop_depth
=
max_loop_depth
;
This
->
baseShader
.
functionLength
=
((
c
har
*
)
pToken
-
(
char
*
)
byte_code
);
This
->
baseShader
.
functionLength
=
((
c
onst
char
*
)
pToken
-
(
const
char
*
)
byte_code
);
return
WINED3D_OK
;
}
...
...
@@ -925,13 +925,13 @@ static void shader_dump_register(const struct wined3d_shader_register *reg,
switch
(
reg
->
immconst_type
)
{
case
WINED3D_IMMCONST_FLOAT
:
TRACE
(
"%.8e"
,
*
(
float
*
)
reg
->
immconst_data
);
TRACE
(
"%.8e"
,
*
(
const
float
*
)
reg
->
immconst_data
);
break
;
case
WINED3D_IMMCONST_FLOAT4
:
TRACE
(
"%.8e, %.8e, %.8e, %.8e"
,
*
(
float
*
)
&
reg
->
immconst_data
[
0
],
*
(
float
*
)
&
reg
->
immconst_data
[
1
],
*
(
float
*
)
&
reg
->
immconst_data
[
2
],
*
(
float
*
)
&
reg
->
immconst_data
[
3
]);
*
(
const
float
*
)
&
reg
->
immconst_data
[
0
],
*
(
const
float
*
)
&
reg
->
immconst_data
[
1
],
*
(
const
float
*
)
&
reg
->
immconst_data
[
2
],
*
(
const
float
*
)
&
reg
->
immconst_data
[
3
]);
break
;
default:
...
...
dlls/wined3d/buffer.c
View file @
9cf78880
...
...
@@ -577,7 +577,7 @@ static ULONG STDMETHODCALLTYPE buffer_AddRef(IWineD3DBuffer *iface)
}
/* Context activation is done by the caller. */
const
BYTE
*
buffer_get_sysmem
(
struct
wined3d_buffer
*
This
)
BYTE
*
buffer_get_sysmem
(
struct
wined3d_buffer
*
This
)
{
/* AllocatedMemory exists if the buffer is double buffered or has no buffer object at all */
if
(
This
->
resource
.
allocatedMemory
)
return
This
->
resource
.
allocatedMemory
;
...
...
dlls/wined3d/glsl_shader.c
View file @
9cf78880
...
...
@@ -1335,13 +1335,13 @@ static void shader_glsl_get_register_name(const struct wined3d_shader_register *
switch
(
reg
->
immconst_type
)
{
case
WINED3D_IMMCONST_FLOAT
:
sprintf
(
register_name
,
"%.8e"
,
*
(
float
*
)
reg
->
immconst_data
);
sprintf
(
register_name
,
"%.8e"
,
*
(
const
float
*
)
reg
->
immconst_data
);
break
;
case
WINED3D_IMMCONST_FLOAT4
:
sprintf
(
register_name
,
"vec4(%.8e, %.8e, %.8e, %.8e)"
,
*
(
float
*
)
&
reg
->
immconst_data
[
0
],
*
(
float
*
)
&
reg
->
immconst_data
[
1
],
*
(
float
*
)
&
reg
->
immconst_data
[
2
],
*
(
float
*
)
&
reg
->
immconst_data
[
3
]);
*
(
const
float
*
)
&
reg
->
immconst_data
[
0
],
*
(
const
float
*
)
&
reg
->
immconst_data
[
1
],
*
(
const
float
*
)
&
reg
->
immconst_data
[
2
],
*
(
const
float
*
)
&
reg
->
immconst_data
[
3
]);
break
;
default:
...
...
dlls/wined3d/wined3d_private.h
View file @
9cf78880
...
...
@@ -2395,7 +2395,7 @@ struct wined3d_buffer
extern
const
IWineD3DBufferVtbl
wined3d_buffer_vtbl
;
const
BYTE
*
buffer_get_memory
(
IWineD3DBuffer
*
iface
,
UINT
offset
,
GLuint
*
buffer_object
);
const
BYTE
*
buffer_get_sysmem
(
struct
wined3d_buffer
*
This
);
BYTE
*
buffer_get_sysmem
(
struct
wined3d_buffer
*
This
);
/* IWineD3DRendertargetView */
struct
wined3d_rendertarget_view
...
...
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