Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
acae320e
Commit
acae320e
authored
Jul 12, 2017
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gl: don't do direct rendering below OpenGL 3.0
See comments.
parent
96b96301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/video_output/opengl/converters.c
modules/video_output/opengl/converters.c
+8
-1
No files found.
modules/video_output/opengl/converters.c
View file @
acae320e
...
...
@@ -1125,7 +1125,14 @@ generic_init(opengl_tex_converter_t *tc, bool allow_dr)
const
bool
has_bs
=
HasExtension
(
tc
->
glexts
,
"GL_ARB_buffer_storage"
)
||
HasExtension
(
tc
->
glexts
,
"GL_EXT_buffer_storage"
);
supports_map_persistent
=
has_pbo
&&
has_bs
&&
tc
->
api
->
BufferStorage
/* Ensure we do direct rendering with OpenGL 3.0 or higher. Indeed,
* persistent mapped buffers seems to be slow with OpenGL 2.1 drivers
* and bellow. This may be caused by OpenGL compatibility layer. */
const
unsigned
char
*
ogl_version
=
glGetString
(
GL_VERSION
);
const
bool
glver_ok
=
strverscmp
((
const
char
*
)
ogl_version
,
"3.0"
)
>=
0
;
supports_map_persistent
=
glver_ok
&&
has_pbo
&&
has_bs
&&
tc
->
api
->
BufferStorage
&&
tc
->
api
->
MapBufferRange
&&
tc
->
api
->
FlushMappedBufferRange
&&
tc
->
api
->
UnmapBuffer
&&
tc
->
api
->
FenceSync
&&
tc
->
api
->
DeleteSync
&&
tc
->
api
->
ClientWaitSync
;
...
...
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