Remove more obsolete code.

This commit is contained in:
Sasha Szpakowski
2024-06-20 22:14:31 -03:00
parent 8ceae23aa3
commit 25a6576785
4 changed files with 0 additions and 18 deletions
-5
View File
@@ -1045,8 +1045,6 @@ void Graphics::setRenderTargets(const RenderTargets &rts)
if (rtcount > capabilities.limits[LIMIT_RENDER_TARGETS])
throw love::Exception("This system can't simultaneously render to %d textures.", rtcount);
bool multiformatsupported = capabilities.features[FEATURE_MULTI_RENDER_TARGET_FORMATS];
PixelFormat firstcolorformat = PIXELFORMAT_UNKNOWN;
if (!rts.colors.empty())
firstcolorformat = rts.colors[0].texture->getPixelFormat();
@@ -1087,9 +1085,6 @@ void Graphics::setRenderTargets(const RenderTargets &rts)
if (c->getPixelWidth(mip) != pixelw || c->getPixelHeight(mip) != pixelh)
throw love::Exception("All textures must have the same pixel dimensions.");
if (!multiformatsupported && format != firstcolorformat)
throw love::Exception("This system doesn't support multi-render-target rendering with different texture formats.");
if (c->getRequestedMSAA() != reqmsaa)
throw love::Exception("All textures must have the same MSAA value.");