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
2305e307
Commit
2305e307
authored
Dec 20, 2012
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed useless vlc_gl_GetProcAddress() calls (opengl).
parent
87f20f41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
modules/video_output/opengl.c
modules/video_output/opengl.c
+0
-26
No files found.
modules/video_output/opengl.c
View file @
2305e307
...
@@ -41,11 +41,6 @@
...
@@ -41,11 +41,6 @@
#endif
#endif
#ifdef __APPLE__
#ifdef __APPLE__
# define PFNGLGENBUFFERSPROC typeof(glGenBuffers)*
# define PFNGLBINDBUFFERPROC typeof(glBindBuffer)*
# define PFNGLDELETEBUFFERSPROC typeof(glDeleteBuffers)*
# define PFNGLBUFFERSUBDATAPROC typeof(glBufferSubData)*
# define PFNGLBUFFERDATAPROC typeof(glBufferData)*
# define PFNGLGETPROGRAMIVPROC typeof(glGetProgramiv)*
# define PFNGLGETPROGRAMIVPROC typeof(glGetProgramiv)*
# define PFNGLGETPROGRAMINFOLOGPROC typeof(glGetProgramInfoLog)*
# define PFNGLGETPROGRAMINFOLOGPROC typeof(glGetProgramInfoLog)*
# define PFNGLGETSHADERIVPROC typeof(glGetShaderiv)*
# define PFNGLGETSHADERIVPROC typeof(glGetShaderiv)*
...
@@ -56,12 +51,10 @@
...
@@ -56,12 +51,10 @@
# define PFNGLENABLEVERTEXATTRIBARRAYPROC typeof(glEnableVertexAttribArray)*
# define PFNGLENABLEVERTEXATTRIBARRAYPROC typeof(glEnableVertexAttribArray)*
# define PFNGLUNIFORM4FVPROC typeof(glUniform4fv)*
# define PFNGLUNIFORM4FVPROC typeof(glUniform4fv)*
# define PFNGLUNIFORM4FPROC typeof(glUniform4f)*
# define PFNGLUNIFORM4FPROC typeof(glUniform4f)*
# define PFNGLUNIFORM3IPROC typeof(glUniform3i)*
# define PFNGLUNIFORM1IPROC typeof(glUniform1i)*
# define PFNGLUNIFORM1IPROC typeof(glUniform1i)*
# define PFNGLCREATESHADERPROC typeof(glCreateShader)*
# define PFNGLCREATESHADERPROC typeof(glCreateShader)*
# define PFNGLSHADERSOURCEPROC typeof(glShaderSource)*
# define PFNGLSHADERSOURCEPROC typeof(glShaderSource)*
# define PFNGLCOMPILESHADERPROC typeof(glCompileShader)*
# define PFNGLCOMPILESHADERPROC typeof(glCompileShader)*
# define PFNGLDETACHSHADERPROC typeof(glDetachShader)*
# define PFNGLDELETESHADERPROC typeof(glDeleteShader)*
# define PFNGLDELETESHADERPROC typeof(glDeleteShader)*
# define PFNGLCREATEPROGRAMPROC typeof(glCreateProgram)*
# define PFNGLCREATEPROGRAMPROC typeof(glCreateProgram)*
# define PFNGLLINKPROGRAMPROC typeof(glLinkProgram)*
# define PFNGLLINKPROGRAMPROC typeof(glLinkProgram)*
...
@@ -131,16 +124,7 @@ struct vout_display_opengl_t {
...
@@ -131,16 +124,7 @@ struct vout_display_opengl_t {
int
local_count
;
int
local_count
;
GLfloat
local_value
[
16
];
GLfloat
local_value
[
16
];
/* Buffer commands */
PFNGLGENBUFFERSPROC
GenBuffers
;
PFNGLBINDBUFFERPROC
BindBuffer
;
PFNGLDELETEBUFFERSPROC
DeleteBuffers
;
PFNGLBUFFERSUBDATAPROC
BufferSubData
;
PFNGLBUFFERDATAPROC
BufferData
;
/* Shader variables commands*/
/* Shader variables commands*/
PFNGLGETUNIFORMLOCATIONPROC
GetUniformLocation
;
PFNGLGETUNIFORMLOCATIONPROC
GetUniformLocation
;
PFNGLGETATTRIBLOCATIONPROC
GetAttribLocation
;
PFNGLGETATTRIBLOCATIONPROC
GetAttribLocation
;
PFNGLVERTEXATTRIBPOINTERPROC
VertexAttribPointer
;
PFNGLVERTEXATTRIBPOINTERPROC
VertexAttribPointer
;
...
@@ -148,14 +132,12 @@ struct vout_display_opengl_t {
...
@@ -148,14 +132,12 @@ struct vout_display_opengl_t {
PFNGLUNIFORM4FVPROC
Uniform4fv
;
PFNGLUNIFORM4FVPROC
Uniform4fv
;
PFNGLUNIFORM4FPROC
Uniform4f
;
PFNGLUNIFORM4FPROC
Uniform4f
;
PFNGLUNIFORM3IPROC
Uniform3i
;
PFNGLUNIFORM1IPROC
Uniform1i
;
PFNGLUNIFORM1IPROC
Uniform1i
;
/* Shader command */
/* Shader command */
PFNGLCREATESHADERPROC
CreateShader
;
PFNGLCREATESHADERPROC
CreateShader
;
PFNGLSHADERSOURCEPROC
ShaderSource
;
PFNGLSHADERSOURCEPROC
ShaderSource
;
PFNGLCOMPILESHADERPROC
CompileShader
;
PFNGLCOMPILESHADERPROC
CompileShader
;
PFNGLDETACHSHADERPROC
DetachShader
;
PFNGLDELETESHADERPROC
DeleteShader
;
PFNGLDELETESHADERPROC
DeleteShader
;
PFNGLCREATEPROGRAMPROC
CreateProgram
;
PFNGLCREATEPROGRAMPROC
CreateProgram
;
...
@@ -362,12 +344,6 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
...
@@ -362,12 +344,6 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
#endif
#endif
#endif
#endif
vgl
->
GenBuffers
=
(
PFNGLGENBUFFERSPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glGenBuffers"
);
vgl
->
BindBuffer
=
(
PFNGLBINDBUFFERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glBindBuffer"
);
vgl
->
BufferData
=
(
PFNGLBUFFERDATAPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glBufferData"
);
vgl
->
BufferSubData
=
(
PFNGLBUFFERSUBDATAPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glBufferSubData"
);
vgl
->
DeleteBuffers
=
(
PFNGLDELETEBUFFERSPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glDeleteBuffers"
);
vgl
->
CreateShader
=
(
PFNGLCREATESHADERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glCreateShader"
);
vgl
->
CreateShader
=
(
PFNGLCREATESHADERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glCreateShader"
);
vgl
->
ShaderSource
=
(
PFNGLSHADERSOURCEPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glShaderSource"
);
vgl
->
ShaderSource
=
(
PFNGLSHADERSOURCEPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glShaderSource"
);
vgl
->
CompileShader
=
(
PFNGLCOMPILESHADERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glCompileShader"
);
vgl
->
CompileShader
=
(
PFNGLCOMPILESHADERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glCompileShader"
);
...
@@ -378,7 +354,6 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
...
@@ -378,7 +354,6 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
vgl
->
GetProgramInfoLog
=
(
PFNGLGETPROGRAMINFOLOGPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glGetProgramInfoLog"
);
vgl
->
GetProgramInfoLog
=
(
PFNGLGETPROGRAMINFOLOGPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glGetProgramInfoLog"
);
vgl
->
GetShaderInfoLog
=
(
PFNGLGETSHADERINFOLOGPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glGetShaderInfoLog"
);
vgl
->
GetShaderInfoLog
=
(
PFNGLGETSHADERINFOLOGPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glGetShaderInfoLog"
);
vgl
->
DetachShader
=
(
PFNGLDETACHSHADERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glDetachShader"
);
vgl
->
DeleteShader
=
(
PFNGLDELETESHADERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glDeleteShader"
);
vgl
->
DeleteShader
=
(
PFNGLDELETESHADERPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glDeleteShader"
);
vgl
->
GetUniformLocation
=
(
PFNGLGETUNIFORMLOCATIONPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glGetUniformLocation"
);
vgl
->
GetUniformLocation
=
(
PFNGLGETUNIFORMLOCATIONPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glGetUniformLocation"
);
...
@@ -387,7 +362,6 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
...
@@ -387,7 +362,6 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
vgl
->
EnableVertexAttribArray
=
(
PFNGLENABLEVERTEXATTRIBARRAYPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glEnableVertexAttribArray"
);
vgl
->
EnableVertexAttribArray
=
(
PFNGLENABLEVERTEXATTRIBARRAYPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glEnableVertexAttribArray"
);
vgl
->
Uniform4fv
=
(
PFNGLUNIFORM4FVPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glUniform4fv"
);
vgl
->
Uniform4fv
=
(
PFNGLUNIFORM4FVPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glUniform4fv"
);
vgl
->
Uniform4f
=
(
PFNGLUNIFORM4FPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glUniform4f"
);
vgl
->
Uniform4f
=
(
PFNGLUNIFORM4FPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glUniform4f"
);
vgl
->
Uniform3i
=
(
PFNGLUNIFORM3IPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glUniform3i"
);
vgl
->
Uniform1i
=
(
PFNGLUNIFORM1IPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glUniform1i"
);
vgl
->
Uniform1i
=
(
PFNGLUNIFORM1IPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glUniform1i"
);
vgl
->
CreateProgram
=
(
PFNGLCREATEPROGRAMPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glCreateProgram"
);
vgl
->
CreateProgram
=
(
PFNGLCREATEPROGRAMPROC
)
vlc_gl_GetProcAddress
(
vgl
->
gl
,
"glCreateProgram"
);
...
...
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