Commit 3cdda8f8ab901340224405873e536bd231657513

Sylvain 2022-01-08T21:58:26

PSP: use 'data' variable which is alread the driver data

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 e7fca22..9431b92 100644
--- a/src/render/psp/SDL_render_psp.c
+++ b/src/render/psp/SDL_render_psp.c
@@ -1212,7 +1212,7 @@ PSP_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *verti
                         .shadeModel = GU_FLAT
                     };
                     TextureActivate(cmd->data.draw.texture);
-                    PSP_SetBlendState(renderer->driverdata, &state);
+                    PSP_SetBlendState(data, &state);
                     sceGuDrawArray(GU_TRIANGLES, GU_TEXTURE_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_2D, count, 0, verts);
                 }
                 break;