remove glClear, change int -> uchar in glez_rgba(..)

This commit is contained in:
nullifiedcat 2017-12-07 20:02:10 +03:00
parent 0c2eef56b4
commit c4a84648b9
3 changed files with 2 additions and 3 deletions

View File

@ -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 */

View File

@ -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);

View File

@ -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;