Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xvba-video
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
xvba-video
Commits
bf2661d3
Commit
bf2661d3
authored
May 11, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xvba-video-glx.c: Make sure there is only one texture to allocate.
parent
d50d89d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/xvba_video_glx.c
src/xvba_video_glx.c
+13
-3
No files found.
src/xvba_video_glx.c
View file @
bf2661d3
...
...
@@ -47,7 +47,6 @@
#define DEBUG 1
#include "debug.h"
/* Define which Evergreen rendering workaround to use */
#define EVERGREEN_WORKAROUND (EVERGREEN_WORKAROUND_AUTODETECT)
...
...
@@ -287,6 +286,8 @@ static void destroy_hw_image_glx(
)
{
unsigned
int
i
;
assert
(
obj_image
);
assert
(
obj_image
->
hw
.
glx
);
if
(
!
obj_image
)
return
;
...
...
@@ -310,7 +311,7 @@ static void destroy_hw_image_glx(
hwi
->
shader
=
NULL
;
}
free
(
hwi
);
free
(
obj_image
->
hw
.
glx
);
obj_image
->
hw
.
glx
=
NULL
;
}
...
...
@@ -364,8 +365,16 @@ create_hw_image_glx(
return
VA_STATUS_ERROR_INVALID_IMAGE
;
}
unsigned
int
i
;
/* FIXME: gl_create_texture() only allocates one
* texture at a time. According to GL information
* found on google you MUST glGetTextures() with
* the entire texture array at once and not one at
* a time as is done in this function */
ASSERT
(
hwi
->
num_textures
==
1
);
hwi
->
target
=
GL_TEXTURE_2D
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
hwi
->
num_textures
;
i
++
)
{
hwi
->
textures
[
i
]
=
gl_create_texture
(
hwi
->
target
,
...
...
@@ -584,6 +593,7 @@ render_subpictures(
if
(
status
!=
VA_STATUS_SUCCESS
)
return
status
;
}
return
VA_STATUS_SUCCESS
;
}
...
...
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