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
a549b8f0
Commit
a549b8f0
authored
May 12, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix a few MSVC data loss warnings.
parent
31901155
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
drawprim.c
dlls/wined3d/drawprim.c
+1
-1
gl_compat.c
dlls/wined3d/gl_compat.c
+6
-6
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-1
surface.c
dlls/wined3d/surface.c
+1
-1
No files found.
dlls/wined3d/drawprim.c
View file @
a549b8f0
...
...
@@ -274,7 +274,7 @@ static void drawStridedSlow(IWineD3DDeviceImpl *device, const struct wined3d_con
if
(
specular_fog
)
{
DWORD
specularColor
=
*
(
const
DWORD
*
)
ptrToCoords
;
GL_EXTCALL
(
glFogCoordfEXT
(
specularColor
>>
24
));
GL_EXTCALL
(
glFogCoordfEXT
(
(
float
)
(
specularColor
>>
24
)
));
}
}
...
...
dlls/wined3d/gl_compat.c
View file @
a549b8f0
...
...
@@ -178,9 +178,9 @@ static void WINE_GLAPI wine_glFogi(GLenum pname, GLint param) {
}
}
else
{
if
(
pname
==
GL_FOG_START
)
{
ctx
->
fogstart
=
param
;
ctx
->
fogstart
=
(
float
)
param
;
}
else
if
(
pname
==
GL_FOG_END
)
{
ctx
->
fogend
=
param
;
ctx
->
fogend
=
(
float
)
param
;
}
old_fogcoord_glFogi
(
pname
,
param
);
}
...
...
@@ -199,9 +199,9 @@ static void WINE_GLAPI wine_glFogiv(GLenum pname, const GLint *param) {
}
}
else
{
if
(
pname
==
GL_FOG_START
)
{
ctx
->
fogstart
=
*
param
;
ctx
->
fogstart
=
(
float
)
*
param
;
}
else
if
(
pname
==
GL_FOG_END
)
{
ctx
->
fogend
=
*
param
;
ctx
->
fogend
=
(
float
)
*
param
;
}
old_fogcoord_glFogiv
(
pname
,
param
);
}
...
...
@@ -331,13 +331,13 @@ static void WINE_GLAPI wine_glFogCoordfEXT(GLfloat f) {
ctx
->
fog_coord_value
=
f
;
}
static
void
WINE_GLAPI
wine_glFogCoorddEXT
(
GLdouble
f
)
{
wine_glFogCoordfEXT
(
f
);
wine_glFogCoordfEXT
(
(
GLfloat
)
f
);
}
static
void
WINE_GLAPI
wine_glFogCoordfvEXT
(
const
GLfloat
*
f
)
{
wine_glFogCoordfEXT
(
*
f
);
}
static
void
WINE_GLAPI
wine_glFogCoorddvEXT
(
const
GLdouble
*
f
)
{
wine_glFogCoordfEXT
(
*
f
);
wine_glFogCoordfEXT
(
(
GLfloat
)
*
f
);
}
/* End GL_EXT_fog_coord emulation */
...
...
dlls/wined3d/glsl_shader.c
View file @
a549b8f0
...
...
@@ -829,7 +829,7 @@ static void shader_glsl_load_constants(const struct wined3d_context *context,
correction_params
[
1
]
=
1
.
0
f
;
}
else
{
/* position is window relative, not viewport relative */
correction_params
[
0
]
=
context
->
current_rt
->
resource
.
height
;
correction_params
[
0
]
=
(
float
)
context
->
current_rt
->
resource
.
height
;
correction_params
[
1
]
=
-
1
.
0
f
;
}
GL_EXTCALL
(
glUniform4fvARB
(
prog
->
ycorrection_location
,
1
,
correction_params
));
...
...
dlls/wined3d/surface.c
View file @
a549b8f0
...
...
@@ -2554,7 +2554,7 @@ HRESULT surface_load(struct wined3d_surface *surface, BOOL srgb)
static
inline
unsigned
short
float_32_to_16
(
const
float
*
in
)
{
int
exp
=
0
;
float
tmp
=
fabs
(
*
in
);
float
tmp
=
fabs
f
(
*
in
);
unsigned
int
mantissa
;
unsigned
short
ret
;
...
...
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