Merge pull request #34008 from ricmzn/fix-viewport-texture-flags
GLES3: Allow repeat flag in viewport textures
This commit is contained in:
commit
135fd8ff8c
1 changed files with 2 additions and 2 deletions
|
@ -1384,8 +1384,8 @@ void RasterizerStorageGLES3::texture_set_flags(RID p_texture, uint32_t p_flags)
|
||||||
Texture *texture = texture_owner.get(p_texture);
|
Texture *texture = texture_owner.get(p_texture);
|
||||||
ERR_FAIL_COND(!texture);
|
ERR_FAIL_COND(!texture);
|
||||||
if (texture->render_target) {
|
if (texture->render_target) {
|
||||||
|
// only allow filter and repeat flags for render target (ie. viewport) textures
|
||||||
p_flags &= VS::TEXTURE_FLAG_FILTER; //can change only filter
|
p_flags &= (VS::TEXTURE_FLAG_FILTER | VS::TEXTURE_FLAG_REPEAT);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool had_mipmaps = texture->flags & VS::TEXTURE_FLAG_MIPMAPS;
|
bool had_mipmaps = texture->flags & VS::TEXTURE_FLAG_MIPMAPS;
|
||||||
|
|
Loading…
Reference in a new issue