diff --git a/include/glez.h b/include/glez.h index 5516f16..c57aa6c 100644 --- a/include/glez.h +++ b/include/glez.h @@ -47,7 +47,7 @@ void glez_resize(int width, int height); /* Helper functions */ -glez_rgba_t glez_rgba(int r, int g, int b, int a); +glez_rgba_t glez_rgba(unsigned char r, unsigned char g, unsigned char b, unsigned char a); /* Font-related functions */ diff --git a/src/draw.c b/src/draw.c index 734a20f..feae7d9 100644 --- a/src/draw.c +++ b/src/draw.c @@ -26,7 +26,6 @@ void ds_destroy() void ds_pre_render() { - glClear(GL_COLOR_BUFFER_BIT); glPushAttrib(GL_CURRENT_BIT | GL_ENABLE_BIT | GL_TEXTURE_BIT | GL_COLOR_BUFFER_BIT); diff --git a/src/glez.c b/src/glez.c index 036564b..cb36297 100644 --- a/src/glez.c +++ b/src/glez.c @@ -48,7 +48,7 @@ void glez_resize(int width, int height) /* Helper functions */ -glez_rgba_t glez_rgba(int r, int g, int b, int a) +glez_rgba_t glez_rgba(unsigned char r, unsigned char g, unsigned char b, unsigned char a) { glez_rgba_t result; result.r = (float) r / 255.0f;