Commit c44b4c0 1 parent 1a66d3f commit c44b4c0 Copy full SHA for c44b4c0
File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1194,6 +1194,9 @@ typedef struct SDLGPU_Renderer
1194
1194
MOJOSHADER_effect * currentEffect ;
1195
1195
const MOJOSHADER_effectTechnique * currentTechnique ;
1196
1196
uint32_t currentPass ;
1197
+
1198
+ /* Capabilities */
1199
+ uint8_t supportsBaseVertex ;
1197
1200
} SDLGPU_Renderer ;
1198
1201
1199
1202
/* Statics */
@@ -2247,6 +2250,11 @@ static void SDLGPU_ApplyVertexBufferBindings(
2247
2250
int32_t i , bindingsIndex ;
2248
2251
uint32_t hash ;
2249
2252
2253
+ if (renderer -> supportsBaseVertex )
2254
+ {
2255
+ baseVertex = 0 ;
2256
+ }
2257
+
2250
2258
/* link/compile shader program if it hasn't been yet */
2251
2259
if (!MOJOSHADER_sdlCheckProgramStatus (renderer -> mojoshaderContext ))
2252
2260
{
@@ -4102,6 +4110,9 @@ static FNA3D_Device* SDLGPU_CreateDevice(
4102
4110
NULL
4103
4111
);
4104
4112
4113
+ /* FIXME: moltenVK fix */
4114
+ renderer -> supportsBaseVertex = 1 ;
4115
+
4105
4116
/* Acquire command buffer, we are ready for takeoff */
4106
4117
4107
4118
SDLGPU_ResetCommandBufferState (renderer );
You can’t perform that action at this time.
0 commit comments