remove glClear, change int -> uchar in glez_rgba(..)
This commit is contained in:
parent
0c2eef56b4
commit
c4a84648b9
@ -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 */
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user