[Mesa-dev] [Bug 66346] shader_query.cpp:49: error: invalid conversion from 'void*' to 'GLuint'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 22 15:23:34 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=66346

--- Comment #13 from Julien Isorce <julien.isorce at gmail.com> ---
Problem still exists:

CXX      main/shader_query.lo
main/shader_query.cpp:71:7: error: no matching function for call to
'_mesa_lookup_shader_program_err'
      _mesa_lookup_shader_program_err(ctx, program, "glBindAttribLocation");
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/mesa/main/shaderobj.h:89:1: note: candidate function not viable:
cannot convert argument of incomplete type 'GLhandleARB' (aka 'void *') to
      'GLuint' (aka 'unsigned int')
_mesa_lookup_shader_program_err(struct gl_context *ctx, GLuint name,
^
main/shader_query.cpp:139:13: error: no matching function for call to
'_mesa_lookup_shader_program_err'
   shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveAttrib");
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/mesa/main/shaderobj.h:89:1: note: candidate function not viable:
cannot convert argument of incomplete type 'GLhandleARB' (aka 'void *') to
      'GLuint' (aka 'unsigned int')
_mesa_lookup_shader_program_err(struct gl_context *ctx, GLuint name,
^
main/shader_query.cpp:253:7: error: no matching function for call to
'_mesa_lookup_shader_program_err'
      _mesa_lookup_shader_program_err(ctx, program, "glGetAttribLocation");
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/mesa/main/shaderobj.h:89:1: note: candidate function not viable:
cannot convert argument of incomplete type 'GLhandleARB' (aka 'void *') to
      'GLuint' (aka 'unsigned int')
_mesa_lookup_shader_program_err(struct gl_context *ctx, GLuint name,
^
3 errors generated.

----

gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

---

OSX 10.10.3 / Dev Command Line Tools v6.3

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150422/b2b06e73/attachment.html>


More information about the mesa-dev mailing list