Clone Source loading fixed and simplified

Fixed loading order. Removed the option of origin selection for Clone: not meaningful anymore with chain of clones.
This commit is contained in:
Bruno Herbelin
2022-04-16 19:52:52 +02:00
parent 48b1bfaebd
commit becc3d0953
8 changed files with 88 additions and 101 deletions

View File

@@ -270,8 +270,12 @@ void FrameBuffer::release()
void FrameBuffer::readPixels(uint8_t *target_data)
{
if (!framebufferid_)
if (!framebufferid_) {
#ifdef FRAMEBUFFER_DEBUG
g_printerr("FrameBuffer readPixels failed\n");
#endif
return;
}
if (use_multi_sampling_)
glBindFramebuffer(GL_READ_FRAMEBUFFER, intermediate_framebufferid_);
@@ -289,8 +293,12 @@ void FrameBuffer::readPixels(uint8_t *target_data)
bool FrameBuffer::blit(FrameBuffer *destination)
{
if (!framebufferid_ || !destination || (use_alpha_ != destination->use_alpha_) )
if (!framebufferid_ || !destination || (use_alpha_ != destination->use_alpha_) ){
#ifdef FRAMEBUFFER_DEBUG
g_printerr("FrameBuffer blit failed\n");
#endif
return false;
}
if (!destination->framebufferid_)
destination->init();