Fix a bad reference
This commit is contained in:
parent
05e242e054
commit
9f3adc099a
16
GL/util.c
16
GL/util.c
|
@ -1,15 +1,15 @@
|
|||
#include "../include/glkos.h"
|
||||
|
||||
void APIENTRY glVertexPackColor3fKOS(GLVertexKOS* vertex, float r, float g, float b) {
|
||||
vertex->color[3] = 255;
|
||||
vertex->color[2] = (r * 255.0f);
|
||||
vertex->color[1] = (g * 255.0f);
|
||||
vertex->color[0] = (b * 255.0f);
|
||||
vertex->bgra[3] = 255;
|
||||
vertex->bgra[2] = (r * 255.0f);
|
||||
vertex->bgra[1] = (g * 255.0f);
|
||||
vertex->bgra[0] = (b * 255.0f);
|
||||
}
|
||||
|
||||
void APIENTRY glVertexPackColor4fKOS(GLVertexKOS* vertex, float r, float g, float b, float a) {
|
||||
vertex->color[3] = (a * 255.0f);
|
||||
vertex->color[2] = (r * 255.0f);
|
||||
vertex->color[1] = (g * 255.0f);
|
||||
vertex->color[0] = (b * 255.0f);
|
||||
vertex->bgra[3] = (a * 255.0f);
|
||||
vertex->bgra[2] = (r * 255.0f);
|
||||
vertex->bgra[1] = (g * 255.0f);
|
||||
vertex->bgra[0] = (b * 255.0f);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user