Skip to content

Commit cae03aa

Browse files
committed
Fix rlsw persistent alpha blending state
1 parent caadb48 commit cae03aa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/external/rlsw.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3947,6 +3947,7 @@ static void sw_immediate_push_vertex(const float position[4])
39473947
// Copy the attributes in the current vertex
39483948
for (int i = 0; i < 4; i++) vertex->color[i] = RLSW.primitive.color[i];
39493949
for (int i = 0; i < 2; i++) vertex->texcoord[i] = RLSW.primitive.texcoord[i];
3950+
RLSW.primitive.hasColorAlpha |= (vertex->color[3] < 1.0f);
39503951

39513952
// Immediate rendering of the primitive if the required number is reached
39523953
if (RLSW.primitive.vertexCount == SW_PRIMITIVE_VERTEX_COUNT[RLSW.drawMode])

0 commit comments

Comments
 (0)