mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-20 10:05:44 +01:00
create a custom definition for size_t and ssize_t, which is ssize and usize, for conveinience.
This commit is contained in:
@@ -19,7 +19,7 @@ extern const uint sh_geom_glsl_len;
|
||||
|
||||
/* Compiles a shader of `type` from `src` with `len` bytes.
|
||||
* Returns the integer for the shader. */
|
||||
static GLuint shader_compile(GLenum type, const char *src, size_t len) {
|
||||
static GLuint shader_compile(GLenum type, const char *src, usize len) {
|
||||
int ilen = len;
|
||||
GLuint shader = glCreateShader(type);
|
||||
glShaderSource(shader, 1, &src, &ilen);
|
||||
|
||||
Reference in New Issue
Block a user