Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
55ab14a4
Commit
55ab14a4
authored
Jul 05, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move an VBO support check to the state template.
parent
dc203d36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
state.c
dlls/wined3d/state.c
+1
-3
No files found.
dlls/wined3d/state.c
View file @
55ab14a4
...
...
@@ -3728,14 +3728,12 @@ static void scissorrect(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3D
}
static
void
indexbuffer
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
if
(
GL_SUPPORT
(
ARB_VERTEX_BUFFER_OBJECT
))
{
if
(
stateblock
->
streamIsUP
||
stateblock
->
pIndexData
==
NULL
)
{
GL_EXTCALL
(
glBindBufferARB
(
GL_ELEMENT_ARRAY_BUFFER_ARB
,
0
));
}
else
{
IWineD3DIndexBufferImpl
*
ib
=
(
IWineD3DIndexBufferImpl
*
)
stateblock
->
pIndexData
;
GL_EXTCALL
(
glBindBufferARB
(
GL_ELEMENT_ARRAY_BUFFER_ARB
,
ib
->
vbo
));
}
}
}
static
void
frontface
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
...
...
@@ -3818,7 +3816,7 @@ const struct StateEntryTemplate misc_state_template[] = {
{
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_BUMPENVLOFFSET
),
{
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_BUMPENVLOFFSET
),
tex_bumpenvloffset
},
0
},
{
STATE_VIEWPORT
,
{
STATE_VIEWPORT
,
viewport_miscpart
},
0
},
{
STATE_INDEXBUFFER
,
{
STATE_INDEXBUFFER
,
indexbuffer
},
0
},
{
STATE_INDEXBUFFER
,
{
STATE_INDEXBUFFER
,
indexbuffer
},
ARB_VERTEX_BUFFER_OBJECT
},
{
STATE_RENDER
(
WINED3DRS_ANTIALIAS
),
{
STATE_RENDER
(
WINED3DRS_ANTIALIAS
),
state_antialias
},
0
},
{
STATE_RENDER
(
WINED3DRS_TEXTUREPERSPECTIVE
),
{
STATE_RENDER
(
WINED3DRS_TEXTUREPERSPECTIVE
),
state_perspective
},
0
},
{
STATE_RENDER
(
WINED3DRS_ZENABLE
),
{
STATE_RENDER
(
WINED3DRS_ZENABLE
),
state_zenable
},
0
},
...
...
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