mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Add a new “stencil8” pixel format for Canvases (resolves issue #1003).
Also fixed Canvas MSAA (resolves issue #1271). stencil-formatted Canvases can’t be drawn, and can only be used as the value for a new ‘depthstencil’ field to the table-argument variant of love.graphics.setCanvas. --HG-- branch : minor
This commit is contained in:
@@ -237,7 +237,7 @@ bool Image::loadVolatile()
|
||||
|
||||
OpenGL::TempDebugGroup debuggroup("Image load");
|
||||
|
||||
if (!OpenGL::isPixelFormatSupported(format, false, sRGB))
|
||||
if (!OpenGL::isPixelFormatSupported(format, false, true, sRGB))
|
||||
{
|
||||
const char *str;
|
||||
if (love::getConstant(format, str))
|
||||
@@ -511,7 +511,7 @@ Image::MipmapsType Image::getMipmapsType() const
|
||||
|
||||
bool Image::isFormatSupported(PixelFormat pixelformat)
|
||||
{
|
||||
return OpenGL::isPixelFormatSupported(pixelformat, false, false);
|
||||
return OpenGL::isPixelFormatSupported(pixelformat, false, true, false);
|
||||
}
|
||||
|
||||
bool Image::hasSRGBSupport()
|
||||
|
||||
Reference in New Issue
Block a user