[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-05-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101

Tapani Pälli lem...@gmail.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|mesa-dev@lists.freedesktop. |lem...@gmail.com
   |org |

--- Comment #7 from Tapani Pälli lem...@gmail.com ---
I've send a modified patch to mesa-dev mailing list.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101

--- Comment #4 from Scott Moreau ore...@gmail.com ---
(In reply to comment #3)
 Created attachment 98234 [details] [review]
 hopeful patch to fix the issue
 
 I'm having problems configuring demos build system to reproduce this ...

No special configuration for demos is needed. As far as I can tell, mesa just
needs to be built with gles1 enabled.

 however for me it seems the reason for failure is that drawtex.c uses
 function which is not part of opengles1.1 API but an extension function
 which should be resolved via eglGetProcAddress instead. Attaching a hopeful
 fix to try.

This patch allows demos to build successfully here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101

--- Comment #5 from Ian Romanick i...@freedesktop.org ---
The demos need to use eglGetProcAddress for extension functions.  The patch is
the right approach, but having a non-static function pointer with the same name
as a function is very dangerous.  You wouldn't declare 'int (*printf)(const
char *, ...);' in your code and expect things to work, would you? :)

This is why GLEW names the function pointers __glewFoo and has a #define glFoo
that calls it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101

--- Comment #6 from Tapani Pälli lem...@gmail.com ---
(In reply to comment #5)
 The demos need to use eglGetProcAddress for extension functions.  The patch
 is the right approach, but having a non-static function pointer with the
 same name as a function is very dangerous.  You wouldn't declare 'int
 (*printf)(const char *, ...);' in your code and expect things to work, would
 you? :)
 
 This is why GLEW names the function pointers __glewFoo and has a #define
 glFoo that calls it.

That is why I left OES out of the name but I can change it to something better
(?)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev