From c4a84648b90ff730889f54a2afe27e27535ac799 Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Thu, 7 Dec 2017 20:02:10 +0300 Subject: [PATCH] remove glClear, change int -> uchar in glez_rgba(..) --- include/glez.h | 2 +- src/draw.c | 1 - src/glez.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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;