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
d5ff1e64
Commit
d5ff1e64
authored
Mar 25, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: glColorMask() changes the write mask for all render targets.
parent
8cf63f0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
context.c
dlls/wined3d/context.c
+3
-0
device.c
dlls/wined3d/device.c
+6
-0
No files found.
dlls/wined3d/context.c
View file @
d5ff1e64
...
@@ -1756,6 +1756,9 @@ static void SetupForBlit(IWineD3DDeviceImpl *This, struct wined3d_context *conte
...
@@ -1756,6 +1756,9 @@ static void SetupForBlit(IWineD3DDeviceImpl *This, struct wined3d_context *conte
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
checkGLcall
(
"glColorMask"
);
checkGLcall
(
"glColorMask"
);
Context_MarkStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
StateTable
);
Context_MarkStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
StateTable
);
Context_MarkStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE1
),
StateTable
);
Context_MarkStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE2
),
StateTable
);
Context_MarkStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE3
),
StateTable
);
if
(
gl_info
->
supported
[
EXT_SECONDARY_COLOR
])
if
(
gl_info
->
supported
[
EXT_SECONDARY_COLOR
])
{
{
glDisable
(
GL_COLOR_SUM_EXT
);
glDisable
(
GL_COLOR_SUM_EXT
);
...
...
dlls/wined3d/device.c
View file @
d5ff1e64
...
@@ -4421,6 +4421,9 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
...
@@ -4421,6 +4421,9 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
{
{
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE1
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE2
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE3
));
glClearColor
(
D3DCOLOR_R
(
Color
),
D3DCOLOR_G
(
Color
),
D3DCOLOR_B
(
Color
),
D3DCOLOR_A
(
Color
));
glClearColor
(
D3DCOLOR_R
(
Color
),
D3DCOLOR_G
(
Color
),
D3DCOLOR_B
(
Color
),
D3DCOLOR_A
(
Color
));
checkGLcall
(
"glClearColor"
);
checkGLcall
(
"glClearColor"
);
glMask
=
glMask
|
GL_COLOR_BUFFER_BIT
;
glMask
=
glMask
|
GL_COLOR_BUFFER_BIT
;
...
@@ -5483,6 +5486,9 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface,
...
@@ -5483,6 +5486,9 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface,
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE1
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE2
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE3
));
glClearColor
(
color
[
0
],
color
[
1
],
color
[
2
],
color
[
3
]);
glClearColor
(
color
[
0
],
color
[
1
],
color
[
2
],
color
[
3
]);
glClear
(
GL_COLOR_BUFFER_BIT
);
glClear
(
GL_COLOR_BUFFER_BIT
);
...
...
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