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
b8feef88
Commit
b8feef88
authored
Sep 13, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: wined3d_device_set_base_vertex_index() never fails.
parent
92353368
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
device.c
dlls/wined3d/device.c
+1
-15
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
b8feef88
...
...
@@ -2260,25 +2260,11 @@ struct wined3d_buffer * CDECL wined3d_device_get_index_buffer(const struct wined
return
device
->
stateBlock
->
state
.
index_buffer
;
}
/* Method to offer d3d9 a simple way to set the base vertex index without messing with the index buffer */
HRESULT
CDECL
wined3d_device_set_base_vertex_index
(
struct
wined3d_device
*
device
,
INT
base_index
)
void
CDECL
wined3d_device_set_base_vertex_index
(
struct
wined3d_device
*
device
,
INT
base_index
)
{
TRACE
(
"device %p, base_index %d.
\n
"
,
device
,
base_index
);
if
(
device
->
updateStateBlock
->
state
.
base_vertex_index
==
base_index
)
{
TRACE
(
"Application is setting the old value over, nothing to do
\n
"
);
return
WINED3D_OK
;
}
device
->
updateStateBlock
->
state
.
base_vertex_index
=
base_index
;
if
(
device
->
isRecordingState
)
{
TRACE
(
"Recording... not performing anything
\n
"
);
return
WINED3D_OK
;
}
return
WINED3D_OK
;
}
INT
CDECL
wined3d_device_get_base_vertex_index
(
const
struct
wined3d_device
*
device
)
...
...
include/wine/wined3d.h
View file @
b8feef88
...
...
@@ -2189,7 +2189,7 @@ HRESULT __cdecl wined3d_device_reset(struct wined3d_device *device,
const
struct
wined3d_swapchain_desc
*
swapchain_desc
,
const
struct
wined3d_display_mode
*
mode
,
wined3d_device_reset_cb
callback
);
void
__cdecl
wined3d_device_restore_fullscreen_window
(
struct
wined3d_device
*
device
,
HWND
window
);
HRESULT
__cdecl
wined3d_device_set_base_vertex_index
(
struct
wined3d_device
*
device
,
INT
base_index
);
void
__cdecl
wined3d_device_set_base_vertex_index
(
struct
wined3d_device
*
device
,
INT
base_index
);
HRESULT
__cdecl
wined3d_device_set_clip_plane
(
struct
wined3d_device
*
device
,
UINT
plane_idx
,
const
struct
wined3d_vec4
*
plane
);
HRESULT
__cdecl
wined3d_device_set_clip_status
(
struct
wined3d_device
*
device
,
...
...
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