Closed yuyichao closed 10 years ago
Gnah! The related mesa commit ist: http://cgit.freedesktop.org/mesa/mesa/commit/include/GLES2/gl2ext.h?id=00a945f61e5d3e1a28fd20fcd18402b9300d1ca8
They updated the GLES headers from the khronos site and added several _EXT and _KHR suffixes. I need to talk to some mesa devs about that, but I think they will just forward me to khronos upstream. Anyway, I probably have to test for both, GL_UNPACK_ROW_LENGTH and GL_UNPACK_ROW_LENGTH_EXT..
Thanks for the hint! I will fix it once I got a response in #dri-devel.
Ok, I tried fixing it. Can you test 31d7b4d5964ef501eddf5ca6ae64a1275284433e?
I didn't fetch mesa-git, but I hope it works. Otherwise, please let me know. Thanks!
From master
src/text_gltex.c: In function 'find_glyph':
src/text_gltex.c:465:17: error: 'GL_UNPACK_ROW_LENGTH' undeclared (first use in this function)
glPixelStorei(GL_UNPACK_ROW_LENGTH, GLYPH_STRIDE(glyph));
^
src/text_gltex.c:465:17: note: each undeclared identifier is reported only once for each function it appears in
Well....
Ugh, right, the gltex renderer also uses it. Fixed.
Thanks
Looks fine, at least when configured with
./autogen.sh --prefix=/usr --enable-wlterm \
--with-renderers=cairo,bbulk,gltex
After upgrading git version of mesa, I got a compile error:
grep -R
in/usr/include
shows:After adding "-DGL_UNPACK_ROW_LENGTH=0x0CF2" to my CFLAGS, it compiles and runs fine.