diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index cc8a5849a..ac0b16423 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -3782,6 +3782,7 @@ int SDL_RenderGeometry(SDL_Renderer *renderer, } } +#if SDL_VIDEO_RENDER_SW static int remap_one_indice( int prev, int k, @@ -4150,6 +4151,7 @@ end: return retval; } +#endif /* SDL_VIDEO_RENDER_SW */ int SDL_RenderGeometryRawFloat(SDL_Renderer *renderer, SDL_Texture *texture, @@ -4247,11 +4249,13 @@ int SDL_RenderGeometryRawFloat(SDL_Renderer *renderer, } /* For the software renderer, try to reinterpret triangles as SDL_Rect */ +#if SDL_VIDEO_RENDER_SW if (renderer->info.flags & SDL_RENDERER_SOFTWARE) { return SDL_SW_RenderGeometryRaw(renderer, texture, xy, xy_stride, color, color_stride, uv, uv_stride, num_vertices, indices, num_indices, size_indices); } +#endif return QueueCmdGeometry(renderer, texture, xy, xy_stride, color, color_stride, uv, uv_stride, @@ -4673,12 +4677,14 @@ int SDL_SetRenderVSync(SDL_Renderer *renderer, int vsync) renderer->wanted_vsync = vsync ? SDL_TRUE : SDL_FALSE; /* for the software renderer, forward eventually the call to the WindowTexture renderer */ +#if SDL_VIDEO_RENDER_SW if (renderer->info.flags & SDL_RENDERER_SOFTWARE) { if (SDL_SetWindowTextureVSync(renderer->window, vsync) == 0) { renderer->simulate_vsync = SDL_FALSE; return 0; } } +#endif if (!renderer->SetVSync || renderer->SetVSync(renderer, vsync) != 0) {