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
a3df4767
Commit
a3df4767
authored
Mar 09, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Buffer object ID's are supposed to be unsigned.
parent
c88aea3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
state.c
dlls/wined3d/state.c
+4
-4
wined3d.idl
include/wine/wined3d.idl
+1
-1
No files found.
dlls/wined3d/state.c
View file @
a3df4767
...
...
@@ -3047,7 +3047,7 @@ static void unloadTexCoords(IWineD3DStateBlockImpl *stateblock) {
}
}
static
void
loadTexCoords
(
IWineD3DStateBlockImpl
*
stateblock
,
const
WineDirect3DVertexStridedData
*
sd
,
GLint
*
curVBO
)
static
void
loadTexCoords
(
IWineD3DStateBlockImpl
*
stateblock
,
const
WineDirect3DVertexStridedData
*
sd
,
GL
u
int
*
curVBO
)
{
const
UINT
*
offset
=
stateblock
->
streamOffset
;
unsigned
int
mapped_stage
=
0
;
...
...
@@ -3251,7 +3251,7 @@ static void tex_coordindex(DWORD state, IWineD3DStateBlockImpl *stateblock, Wine
* and do all the things linked to it
* TODO: Tidy that up to reload only the arrays of the changed unit
*/
GL
int
curVBO
=
GL_SUPPORT
(
ARB_VERTEX_BUFFER_OBJECT
)
?
-
1
:
0
;
GL
uint
curVBO
=
GL_SUPPORT
(
ARB_VERTEX_BUFFER_OBJECT
)
?
~
0U
:
0
;
unloadTexCoords
(
stateblock
);
loadTexCoords
(
stateblock
,
&
stateblock
->
wineD3DDevice
->
strided_streams
,
&
curVBO
);
...
...
@@ -3839,7 +3839,7 @@ static inline void unloadNumberedArrays(IWineD3DStateBlockImpl *stateblock, Wine
static
inline
void
loadNumberedArrays
(
IWineD3DStateBlockImpl
*
stateblock
,
const
WineDirect3DVertexStridedData
*
strided
,
WineD3DContext
*
context
)
{
GL
int
curVBO
=
GL_SUPPORT
(
ARB_VERTEX_BUFFER_OBJECT
)
?
-
1
:
0
;
GL
uint
curVBO
=
GL_SUPPORT
(
ARB_VERTEX_BUFFER_OBJECT
)
?
~
0U
:
0
;
int
i
;
const
UINT
*
offset
=
stateblock
->
streamOffset
;
struct
wined3d_buffer
*
vb
;
...
...
@@ -4014,7 +4014,7 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock,
static
void
loadVertexData
(
IWineD3DStateBlockImpl
*
stateblock
,
const
WineDirect3DVertexStridedData
*
sd
)
{
const
UINT
*
offset
=
stateblock
->
streamOffset
;
GL
int
curVBO
=
GL_SUPPORT
(
ARB_VERTEX_BUFFER_OBJECT
)
?
-
1
:
0
;
GL
uint
curVBO
=
GL_SUPPORT
(
ARB_VERTEX_BUFFER_OBJECT
)
?
~
0U
:
0
;
TRACE
(
"Using fast vertex array code
\n
"
);
...
...
include/wine/wined3d.idl
View file @
a3df4767
...
...
@@ -1921,7 +1921,7 @@ typedef struct WineDirect3DStridedData
const
BYTE
*
lpData
; /* Pointer to start of data */
DWORD
dwStride
; /* Stride between occurrences of this data */
DWORD
dwType
; /* Type (as in D3DVSDT_TYPE) */
int
VBO
;
/* Vertex buffer object this data is in */
unsigned
int
VBO
;
/* Vertex buffer object this data is in */
UINT
streamNo
; /* D3D stream number */
}
WineDirect3DStridedData
;
...
...
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