Fix bluegl-gen.py
The comment about MSVC was not properly escaping backslash sequences, eating some of the comment and generating an interpreter error on \u.
This commit is contained in:
@@ -57,8 +57,8 @@ def generateHeader(api, functions, include_dir, output_dir):
|
||||
# special case for GL_GLEXT_PROTOTYPES
|
||||
if 'GL_GLEXT_PROTOTYPES' in defines:
|
||||
headers += '''
|
||||
// MSVC includes .../Windows Kits\10\Include\10.0.17763.0\um\GL/gl.h, with gl APIs conflicting with
|
||||
// bluegl\include\GL/glcorearb.h, causing errors for OpenGL APIs such as:
|
||||
// MSVC includes .../Windows Kits\\10\\Include\\10.0.17763.0\\um\GL/gl.h, with gl APIs conflicting with
|
||||
// bluegl\\include\\GL/glcorearb.h, causing errors for OpenGL APIs such as:
|
||||
// error C2375: 'glBindTexture': redefinition; different linkage
|
||||
#ifndef FILAMENT_PLATFORM_WGL
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#define TNT_FILAMENT_BLUEGL__H
|
||||
|
||||
|
||||
// MSVC includes .../Windows Kits\Include.0.17763.0\um\GL/gl.h, with gl APIs conflicting with
|
||||
// MSVC includes .../Windows Kits\10\Include\10.0.17763.0\um\GL/gl.h, with gl APIs conflicting with
|
||||
// bluegl\include\GL/glcorearb.h, causing errors for OpenGL APIs such as:
|
||||
// error C2375: 'glBindTexture': redefinition; different linkage
|
||||
#ifndef FILAMENT_PLATFORM_WGL
|
||||
|
||||
+2569
-2569
File diff suppressed because it is too large
Load Diff
+20384
-20384
File diff suppressed because it is too large
Load Diff
+12757
-12757
File diff suppressed because it is too large
Load Diff
+25514
-25514
File diff suppressed because it is too large
Load Diff
+15322
-15322
File diff suppressed because it is too large
Load Diff
+15322
-15322
File diff suppressed because it is too large
Load Diff
+5138
-5138
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user