[MPlayer-cvslog] r36334 - trunk/libvo/gl_common.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Jun 12 15:53:14 CEST 2013


Guillaume POIRIER <poirierg at gmail.com> wrote:

>Hello,
>
>2013/6/12 Reimar Döffinger <Reimar.Doeffinger at gmx.de>:
>> Guillaume POIRIER <poirierg at gmail.com> wrote:
>>>It fails because new_gpu_program() is #defined that way:
>>>
>>>#if defined(CONFIG_GL_EGL_X11) || defined(CONFIG_GL_EGL_ANDROID)
>>>static GLuint new_gpu_program(void) {
>>>
>>>Thoughts?
>>
>> Just remove the #if, it's only there to avoid a warning.
>
>
>It indeed fixes the problem. But what is the proper way to fix this?
>Should it test for CONFIG_GL_OSX as well?

No, simply removing the #if is the proper fix. All variants can use the code. The code is platform-independent. It was only due to my laziness it only worked with GLES before.



More information about the MPlayer-cvslog mailing list