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
8eeb513b
Commit
8eeb513b
authored
Nov 28, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix VBO buffer usage.
parent
718e55b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
buffer.c
dlls/wined3d/buffer.c
+7
-12
No files found.
dlls/wined3d/buffer.c
View file @
8eeb513b
...
@@ -79,22 +79,17 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This)
...
@@ -79,22 +79,17 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This)
}
}
/* Don't use static, because dx apps tend to update the buffer
/* Don't use static, because dx apps tend to update the buffer
* quite often even if they specify 0 usage. Because we always keep the local copy
* quite often even if they specify 0 usage.
* we never read from the vbo and can create a write only opengl buffer.
*/
*/
switch
(
This
->
resource
.
usage
&
(
WINED3DUSAGE_WRITEONLY
|
WINED3DUSAGE_DYNAMIC
)
)
if
(
This
->
resource
.
usage
&
WINED3DUSAGE_DYNAMIC
)
{
{
case
WINED3DUSAGE_WRITEONLY
|
WINED3DUSAGE_DYNAMIC
:
case
WINED3DUSAGE_DYNAMIC
:
TRACE
(
"Gl usage = GL_STREAM_DRAW
\n
"
);
gl_usage
=
GL_STREAM_DRAW_ARB
;
break
;
case
WINED3DUSAGE_WRITEONLY
:
default:
TRACE
(
"Gl usage = GL_DYNAMIC_DRAW
\n
"
);
TRACE
(
"Gl usage = GL_DYNAMIC_DRAW
\n
"
);
gl_usage
=
GL_DYNAMIC_DRAW_ARB
;
gl_usage
=
GL_DYNAMIC_DRAW_ARB
;
break
;
}
else
{
TRACE
(
"Gl usage = GL_STREAM_DRAW
\n
"
);
gl_usage
=
GL_STREAM_DRAW_ARB
;
}
}
/* Reserve memory for the buffer. The amount of data won't change
/* Reserve memory for the buffer. The amount of data won't change
...
...
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