Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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
vlc-2-2
Commits
0ed8238e
Commit
0ed8238e
authored
Sep 13, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl: removed 2 hacks needed to support legacy Macs in the past
parent
2b58798d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
modules/video_output/opengl.c
modules/video_output/opengl.c
+0
-30
No files found.
modules/video_output/opengl.c
View file @
0ed8238e
...
...
@@ -193,24 +193,6 @@ static inline int GetAlignedSize(unsigned size)
#if !USE_OPENGL_ES
static
bool
IsLuminance16Supported
(
int
target
)
{
#if defined(MACOS_OPENGL)
/* OpenGL 1.x on OS X does _not_ support 16bit shaders, but pretends to.
* That's why we enforce return false here, even though the actual code below
* would return true.
* This fixes playback of 10bit content on the Intel GMA 950 chipset, which is
* the only "GPU" supported by 10.6 and 10.7 with just an OpenGL 1.4 driver.
*
* Presumely, this also improves playback on the GMA 3100, GeForce FX 5200,
* GeForce4 Ti, GeForce3, GeForce2 MX/4 MX and the Radeon 8500 when
* running OS X 10.5. */
const
GLubyte
*
p_glversion
;
float
f_glversion
;
p_glversion
=
glGetString
(
GL_VERSION
);
sscanf
((
char
*
)
p_glversion
,
"%f"
,
&
f_glversion
);
if
(
f_glversion
<
2
)
return
false
;
#endif
GLuint
texture
;
glGenTextures
(
1
,
&
texture
);
...
...
@@ -311,18 +293,6 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
list
++
;
}
}
#if (defined (__ppc__) || defined (__ppc64__) || defined (__powerpc__)) && defined (__APPLE__)
/* This is a work-around for dated PowerPC-based Macs, which run OpenGL 1.3 only and don't
* support the GL_ARB_fragment_program extension.
* Affected devices are all Macs built between 2002 and 2005 with an ATI Radeon 7500,
* an ATI Radeon 9200 or a NVIDIA GeForceFX 5200 Ultra. */
else
{
vgl
->
tex_format
=
GL_YCBCR_422_APPLE
;
vgl
->
tex_type
=
GL_UNSIGNED_SHORT_8_8_APPLE
;
vgl
->
fmt
.
i_chroma
=
VLC_CODEC_YUYV
;
}
#endif
vgl
->
GenBuffers
=
(
PFNGLGENBUFFERSPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glGenBuffers"
);
vgl
->
BindBuffer
=
(
PFNGLBINDBUFFERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glBindBuffer"
);
...
...
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