From 0da50fecbf7441912b8a79bd5a5b6fa0eb9eeb73 Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Thu, 12 Jul 2018 16:47:06 +0200 Subject: [PATCH] Fix missing texture-download error with OpenGL ES (cherry picked from commit 57eaea571af62e758453e8da9116ebfdcb86ff7e) --- drivers/gles3/rasterizer_storage_gles3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index a653b821bb3..fa3890ea2b1 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -909,7 +909,7 @@ Ref RasterizerStorageGLES3::texture_get_data(RID p_texture, VS::CubeMapSi #else ERR_EXPLAIN("Sorry, It's not possible to obtain images back in OpenGL ES"); - return Ref(); + ERR_FAIL_V(Ref()); #endif }