Commit 4472b831298ce928cd67873bb939e8f0ca6ee189

Ozkan Sezer 2022-01-08T11:56:56

PSP_RunCommandQueue: fix argument to PSP_SetBlendState() src/render/psp/SDL_render_psp.c: In function 'PSP_RunCommandQueue': src/render/psp/SDL_render_psp.c:1200: warning: passing argument 1 of 'PSP_SetBlendState' from incompatible pointer type

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/psp/SDL_render_psp.c b/src/render/psp/SDL_render_psp.c
index 5f5b779..51feabc 100644
--- a/src/render/psp/SDL_render_psp.c
+++ b/src/render/psp/SDL_render_psp.c
@@ -1197,7 +1197,7 @@ PSP_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *verti
                         .shadeModel = GU_FLAT
                     };
                     TextureActivate(cmd->data.draw.texture);
-                    PSP_SetBlendState(renderer, &state);
+                    PSP_SetBlendState(renderer->driverdata, &state);
                     sceGuDrawArray(GU_TRIANGLES, GU_TEXTURE_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_2D, count, 0, verts);
                 }
                 break;