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
4de7249d
Commit
4de7249d
authored
Dec 11, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Call buffer_get_memory in surface_load_pbo.
parent
800571c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
surface.c
dlls/wined3d/surface.c
+3
-1
No files found.
dlls/wined3d/surface.c
View file @
4de7249d
...
...
@@ -549,6 +549,8 @@ static void surface_load_pbo(struct wined3d_surface *surface, const struct wined
{
struct
wined3d_context
*
context
;
GLenum
error
;
struct
wined3d_bo_address
data
;
surface_get_memory
(
surface
,
&
data
);
context
=
context_acquire
(
surface
->
resource
.
device
,
NULL
);
...
...
@@ -563,7 +565,7 @@ static void surface_load_pbo(struct wined3d_surface *surface, const struct wined
checkGLcall
(
"glBindBufferARB"
);
GL_EXTCALL
(
glBufferDataARB
(
GL_PIXEL_UNPACK_BUFFER_ARB
,
surface
->
resource
.
size
+
4
,
surface
->
resource
.
allocatedMemory
,
GL_STREAM_DRAW_ARB
));
data
.
addr
,
GL_STREAM_DRAW_ARB
));
checkGLcall
(
"glBufferDataARB"
);
GL_EXTCALL
(
glBindBufferARB
(
GL_PIXEL_UNPACK_BUFFER_ARB
,
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