mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Initial support for integer format textures.
They can't be rendered to and ImageData can't use the formats, for now.
This commit is contained in:
@@ -635,10 +635,9 @@ bool Shader::isDefaultActive()
|
||||
return false;
|
||||
}
|
||||
|
||||
TextureType Shader::getMainTextureType() const
|
||||
const Shader::UniformInfo *Shader::getMainTextureInfo() const
|
||||
{
|
||||
const UniformInfo *info = getUniformInfo(BUILTIN_TEXTURE_MAIN);
|
||||
return info != nullptr ? info->textureType : TEXTURE_MAX_ENUM;
|
||||
return getUniformInfo(BUILTIN_TEXTURE_MAIN);
|
||||
}
|
||||
|
||||
void Shader::validateDrawState(PrimitiveType primtype, Texture *maintex) const
|
||||
|
||||
Reference in New Issue
Block a user