You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
throw error when user tries to use Canvas background without sample buffer
This commit is contained in:
@@ -4335,6 +4335,10 @@ void RasterizerSceneGLES3::render_scene(const Transform &p_cam_transform, const
|
|||||||
if (storage->frame.current_rt->buffers.active) {
|
if (storage->frame.current_rt->buffers.active) {
|
||||||
current_fbo = storage->frame.current_rt->buffers.fbo;
|
current_fbo = storage->frame.current_rt->buffers.fbo;
|
||||||
} else {
|
} else {
|
||||||
|
if (storage->frame.current_rt->effects.mip_maps[0].sizes.size() == 0) {
|
||||||
|
ERR_PRINT_ONCE("Can't use canvas background mode in a render target configured without sampling");
|
||||||
|
return;
|
||||||
|
}
|
||||||
current_fbo = storage->frame.current_rt->effects.mip_maps[0].sizes[0].fbo;
|
current_fbo = storage->frame.current_rt->effects.mip_maps[0].sizes[0].fbo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user