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
a48bbc36
Commit
a48bbc36
authored
Jan 02, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a viewport state to the state table.
parent
438c1728
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
device.c
dlls/wined3d/device.c
+2
-0
state.c
dlls/wined3d/state.c
+1
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+4
-1
No files found.
dlls/wined3d/device.c
View file @
a48bbc36
...
...
@@ -3095,6 +3095,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetViewport(IWineD3DDevice *iface, CONS
LEAVE_GL
();
/* Todo: move the gl code too */
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_VIEWPORT
);
return
WINED3D_OK
;
}
...
...
dlls/wined3d/state.c
View file @
a48bbc36
...
...
@@ -2919,5 +2919,6 @@ const struct StateEntry StateTable[] =
{
/* , STATE_STREAMSRC */
STATE_VDECL
,
vertexdeclaration
},
{
/* , STATE_VDECL */
STATE_VDECL
,
vertexdeclaration
},
{
/* , STATE_VSHADER */
STATE_VDECL
,
vertexdeclaration
},
{
/* , STATE_VIEWPORT */
STATE_VDECL
,
vertexdeclaration
},
};
dlls/wined3d/wined3d_private.h
View file @
a48bbc36
...
...
@@ -433,7 +433,10 @@ typedef void (*APPLYSTATEFUNC)(DWORD state, IWineD3DStateBlockImpl *stateblock);
#define STATE_VSHADER (STATE_VDECL + 1)
#define STATE_IS_VSHADER(a) ((a) == STATE_VSHADER)
#define STATE_HIGHEST (STATE_VSHADER)
#define STATE_VIEWPORT (STATE_VSHADER + 1)
#define STATE_IS_VIEWPORT(a) ((a) == STATE_VIEWPORT)
#define STATE_HIGHEST (STATE_VIEWPORT)
struct
StateEntry
{
...
...
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