mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Canvases now have OpenGL ES support, updated Texture:setWrap to return false for repeat wrap modes in non-power-of-two textures if OpenGL ES 2 is used and the implementation doesn't have support for repeat on NPOT textures.
--HG-- branch : minor
This commit is contained in:
@@ -55,6 +55,14 @@ public:
|
||||
**/
|
||||
virtual void postdraw() {}
|
||||
|
||||
/**
|
||||
* Unextended OpenGL ES 2 doesn't support non-clamp wrap modes or mipmapping
|
||||
* with non-power-of-two textures.
|
||||
**/
|
||||
static bool hasLimitedNpot()
|
||||
{
|
||||
return GLAD_ES_VERSION_2_0 && !(GLAD_ES_VERSION_3_0 || GLAD_OES_texture_npot);
|
||||
}
|
||||
|
||||
}; // Texture
|
||||
|
||||
|
||||
Reference in New Issue
Block a user