This commit is contained in:
Juan Linietsky 2015-09-12 10:56:13 -03:00
commit 89a901c4b6
5 changed files with 13 additions and 0 deletions

View File

@ -11188,6 +11188,12 @@ RasterizerGLES2::RasterizerGLES2(bool p_compress_arrays,bool p_keep_ram_copy,boo
tc0_idx=0; tc0_idx=0;
}; };
void RasterizerGLES2::restore_framebuffer() {
glBindFramebuffer(GL_FRAMEBUFFER, base_framebuffer);
}
RasterizerGLES2::~RasterizerGLES2() { RasterizerGLES2::~RasterizerGLES2() {
memdelete_arr(skinned_buffer); memdelete_arr(skinned_buffer);

View File

@ -1695,6 +1695,8 @@ public:
void reload_vram(); void reload_vram();
virtual bool has_feature(VS::Features p_feature) const; virtual bool has_feature(VS::Features p_feature) const;
virtual void restore_framebuffer();
static RasterizerGLES2* get_singleton(); static RasterizerGLES2* get_singleton();

View File

@ -345,6 +345,8 @@ static void clear_touches() {
[self destroyFramebuffer]; [self destroyFramebuffer];
[self createFramebuffer]; [self createFramebuffer];
[self drawView]; [self drawView];
[self drawView];
} }
- (BOOL)createFramebuffer - (BOOL)createFramebuffer

View File

@ -1022,6 +1022,7 @@ public:
virtual bool has_feature(VS::Features p_feature) const=0; virtual bool has_feature(VS::Features p_feature) const=0;
virtual void restore_framebuffer()=0;
virtual int get_render_info(VS::RenderInfo p_info)=0; virtual int get_render_info(VS::RenderInfo p_info)=0;

View File

@ -7427,6 +7427,8 @@ void VisualServerRaster::set_boot_image(const Image& p_image, const Color& p_col
if (p_image.empty()) if (p_image.empty())
return; return;
rasterizer->restore_framebuffer();
rasterizer->begin_frame(); rasterizer->begin_frame();
int window_w = OS::get_singleton()->get_video_mode(0).width; int window_w = OS::get_singleton()->get_video_mode(0).width;