Fixed warning C4127 (conditional expression is constant) in Visual Studio

This commit is contained in:
Sam Lantinga committed 2025-11-17 16:06:58 -08:00
1 parent b144c79da2
commit 4931c675ab
5 files changed
+144 -157

No files matched your search

-1
View File
@@ -1093,7 +1093,6 @@ static void ChooseBestCameraSpec(SDL_Camera *device, const SDL_CameraSpec *spec,
// that.
SDL_zerop(closest);
SDL_assert(((Uint32) SDL_PIXELFORMAT_UNKNOWN) == 0); // since we SDL_zerop'd to this value.
if (device->num_specs == 0) { // device listed no specs! You get whatever you want!
if (spec) {