Closed dukeeeey closed 2 years ago
On windows
typedef ptrdiff_t GLintptr; typedef ptrdiff_t GLsizeiptr;
Both are signed
typedef unsigned __int64 size_t; typedef __int64 ptrdiff_t; typedef __int64 intptr_t;
typedef unsigned int size_t; typedef int ptrdiff_t; typedef int intptr_t;
Agreed. https://www.khronos.org/opengl/wiki/OpenGL_Type
However, it signed in glcorearb.h
#ifndef GL_VERSION_1_5 #define GL_VERSION_1_5 1 typedef khronos_ssize_t GLsizeiptr; typedef khronos_intptr_t GLintptr;
Yeah strange, guess i'll close this then.
On windows
typedef ptrdiff_t GLintptr; typedef ptrdiff_t GLsizeiptr;
Both are signed
ifdef _WIN64
else
endif