Skip to content

Commit

Permalink
library: fix vertex3d_colour result order
Browse files Browse the repository at this point in the history
Not sure why I'd thought it's BGRA previously. Maybe it once was.
  • Loading branch information
Adamcake committed Nov 17, 2024
1 parent 4c9e48b commit 2943f01
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/library/gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1716,11 +1716,10 @@ static void _bolt_gl_plugin_drawelements_vertex3d_colour(size_t index, void* use
struct GLPluginDrawElementsVertex3DUserData* data = userdata;
float colour[4];
_bolt_get_attr_binding(data->c, data->colour, data->indices[index], 4, colour);
// these are ABGR for some reason
out[0] = (double)colour[3];
out[1] = (double)colour[2];
out[2] = (double)colour[1];
out[3] = (double)colour[0];
out[0] = (double)colour[0];
out[1] = (double)colour[1];
out[2] = (double)colour[2];
out[3] = (double)colour[3];
}

static uint8_t _bolt_gl_plugin_drawelements_vertex3d_boneid(size_t index, void* userdata) {
Expand Down

0 comments on commit 2943f01

Please sign in to comment.