Update version of glad used to generate OpenGL wrapper

Also fix #654
This commit is contained in:
Kovid Goyal
2018-06-20 12:43:26 +05:30
parent 031fc10859
commit bf0dcb1d2e
3 changed files with 2833 additions and 2839 deletions

View File

@@ -43,6 +43,8 @@ def export():
switch = ['glad_debug_{0} = glad_{0}'.format(f) for f in functions]
c = c.replace('<glad/glad.h>', '"gl-wrapper.h"', 1)
c = '#pragma GCC diagnostic ignored "-Wpedantic"\n' + c
# See https://github.com/kovidgoyal/kitty/issues/654
c = c.replace('strncpy(local_str, gl_str_tmp, len+1)', 'memcpy(local_str, gl_str_tmp, len+1)', 1)
c += '''
int
init_glad(GLADloadproc load, int debug) {