mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
Merge pull request #14755 from hpvb/fix-13337
Don't glBindTexture() on viewports without effects
This commit is contained in:
commit
e2583233d1
@ -1545,7 +1545,7 @@ void RasterizerCanvasGLES3::reset_canvas() {
|
||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||
|
||||
//use for reading from screen
|
||||
if (storage->frame.current_rt) {
|
||||
if (storage->frame.current_rt && !storage->frame.current_rt->flags[RasterizerStorage::RENDER_TARGET_NO_SAMPLING]) {
|
||||
glActiveTexture(GL_TEXTURE0 + storage->config.max_texture_image_units - 3);
|
||||
glBindTexture(GL_TEXTURE_2D, storage->frame.current_rt->effects.mip_maps[0].color);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user