Re: [SailfishDevel] ListView , Image with large height and EGL errors (AL13N)
when i use Image with big images, i use code like this:| Image { onSourceSizeChanged: { if( sourceSize.width > 3264 ) sourceSize.width = 3264 if( sourceSize.height > 3264 ) sourceSize.height = 3264 } cache: false asynchronous: true } or it just show black screen ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ListView , Image with large height and EGL errors (AL13N)
I actually did: width: parent.width asynchronous: true cache: false sourceSize.width: width for this thing; the height it still like 8000 pixels high, even with width == the jolla1 pixel width. thing is, i get black for those long images, and an EGL Texture error. short ones are done fine. but, if i do the image on its own, then it works fine. so, it's something to do with the ListView and the way it instantiates it... Dmitriy Sedov schreef op 2019-05-31 14:05: when i use Image with big images, i use code like this:| Image { onSourceSizeChanged: { if( sourceSize.width > 3264 ) sourceSize.width = 3264 if( sourceSize.height > 3264 ) sourceSize.height = 3264 } cache: false asynchronous: true } or it just show black screen ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ListView , Image with large height and EGL errors (AL13N)
Those who don't like the idea of hardcoding 3264 (or any other number) in their code, can query GL_MAX_TEXTURE_SIZE instead: https://github.com/monich/harbour-foilpics/blob/master/src/FoilPicsImageProvider.cpp#L57 Cheers, -Slava when i use Image with big images, i use code like this:| Image { onSourceSizeChanged: { if( sourceSize.width > 3264 ) sourceSize.width = 3264 if( sourceSize.height > 3264 ) sourceSize.height = 3264 } cache: false asynchronous: true } or it just show black screen ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ListView , Image with large height and EGL errors (AL13N)
I have a qml only app... i found out experimentally that the limit is at 4096 for Y; but only in a ListView; if i do regular images, then there is no such limit... (which seems weird) Slava Monich schreef op 2019-05-31 23:18: Those who don't like the idea of hardcoding 3264 (or any other number) in their code, can query GL_MAX_TEXTURE_SIZE instead: https://github.com/monich/harbour-foilpics/blob/master/src/FoilPicsImageProvider.cpp#L57 Cheers, -Slava when i use Image with big images, i use code like this:| Image { onSourceSizeChanged: { if( sourceSize.width > 3264 ) sourceSize.width = 3264 if( sourceSize.height > 3264 ) sourceSize.height = 3264 } cache: false asynchronous: true } or it just show black screen ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org