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
0479fb13
Commit
0479fb13
authored
Aug 07, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Explicitly pass the context to drawStridedSlow().
parent
3bf0ad45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drawprim.c
dlls/wined3d/drawprim.c
+5
-4
No files found.
dlls/wined3d/drawprim.c
View file @
0479fb13
...
@@ -70,10 +70,10 @@ static void drawStridedFast(IWineD3DDevice *iface, GLenum primitive_type,
...
@@ -70,10 +70,10 @@ static void drawStridedFast(IWineD3DDevice *iface, GLenum primitive_type,
*/
*/
/* GL locking is done by the caller */
/* GL locking is done by the caller */
static
void
drawStridedSlow
(
IWineD3DDevice
*
iface
,
const
struct
wined3d_stream_info
*
si
,
UINT
NumVertexes
,
static
void
drawStridedSlow
(
IWineD3DDevice
*
iface
,
const
struct
wined3d_context
*
context
,
GLenum
glPrimType
,
const
void
*
idxData
,
UINT
idxSize
,
UINT
minIndex
,
UINT
startIdx
)
const
struct
wined3d_stream_info
*
si
,
UINT
NumVertexes
,
GLenum
glPrimType
,
const
void
*
idxData
,
UINT
idxSize
,
UINT
minIndex
,
UINT
startIdx
)
{
{
struct
wined3d_context
*
context
=
context_get_current
();
unsigned
int
textureNo
=
0
;
unsigned
int
textureNo
=
0
;
const
WORD
*
pIdxBufS
=
NULL
;
const
WORD
*
pIdxBufS
=
NULL
;
const
DWORD
*
pIdxBufL
=
NULL
;
const
DWORD
*
pIdxBufL
=
NULL
;
...
@@ -656,7 +656,8 @@ void drawPrimitive(IWineD3DDevice *iface, UINT index_count, UINT numberOfVertice
...
@@ -656,7 +656,8 @@ void drawPrimitive(IWineD3DDevice *iface, UINT index_count, UINT numberOfVertice
}
}
drawStridedSlowVs
(
iface
,
stream_info
,
index_count
,
glPrimType
,
idxData
,
idxSize
,
minIndex
,
StartIdx
);
drawStridedSlowVs
(
iface
,
stream_info
,
index_count
,
glPrimType
,
idxData
,
idxSize
,
minIndex
,
StartIdx
);
}
else
{
}
else
{
drawStridedSlow
(
iface
,
stream_info
,
index_count
,
glPrimType
,
idxData
,
idxSize
,
minIndex
,
StartIdx
);
drawStridedSlow
(
iface
,
context
,
stream_info
,
index_count
,
glPrimType
,
idxData
,
idxSize
,
minIndex
,
StartIdx
);
}
}
}
else
if
(
This
->
instancedDraw
)
{
}
else
if
(
This
->
instancedDraw
)
{
/* Instancing emulation with mixing immediate mode and arrays */
/* Instancing emulation with mixing immediate mode and arrays */
...
...
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