mirror of
https://github.com/godotengine/godot
synced 2024-09-06 02:58:49 +00:00
Don't glBindTexture() on viewports without effects
@reduz said there was another place that needed to be checked for a similar issue but I have to admit I didn't understand. This fixes #13337
This commit is contained in:
parent
652c98a7be
commit
34991af553
|
@ -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 a new issue