Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vector preview problems #191

Merged

Conversation

tomosu
Copy link
Contributor

@tomosu tomosu commented Apr 18, 2016

Related to #92 , changed QtOfflineGL to use QOpenGLFrameBufferObject in offline rendering.

Related to issue #106 #107 , to avoid making the context current from the other threads, changed to move the context to the current object thread before QOpenGLContext::makeCurrent() called.

@kogaki
Copy link
Member

kogaki commented Apr 18, 2016

Jenkins

glReadPixels(0, 0, lx, ly,
GL_RGBA /*GL_BGRA_EXT*/, GL_UNSIGNED_BYTE,
raster->getRawData());
raster->copy( TRaster32P(lx, ly, m_fbo->width(), (TPixelRGBM32 *)m_fbo->toImage(false).bits(), false) );

#ifdef WIN32
swapRedBlueChannels(raster->getRawData(), lx * ly);
#elif MACOSX
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no use ?

@tomosu
Copy link
Contributor Author

tomosu commented Apr 19, 2016

As you mentioned, color channel swapping code will be no longer used, because QOpenGLFrameBufferObject::toImage() may contain these operations.
So deleted.

@tomosu
Copy link
Contributor Author

tomosu commented Apr 19, 2016

Jenkins

@kogaki
Copy link
Member

kogaki commented Apr 19, 2016

2016-04-19 18 50 26
It works nicely.

@kogaki kogaki merged commit 3c27c43 into opentoonz:master Apr 19, 2016
@tomosu tomosu deleted the fix_vector_thumbnail_and_crash_in_preview branch July 14, 2016 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants