summaryrefslogtreecommitdiffstats
path: root/src/render/renderers/opengl/textures
Commit message (Collapse)AuthorAgeFilesLines
* Texture property update: notify frontend only when properties have changedPaul Lemire2018-08-142-0/+2
| | | | | Change-Id: Ic69b25c92ff45f349715a47b19c3f3c1c40eabea Reviewed-by: Mike Krus <mike.krus@kdab.com>
* GLTexture: simplify createOrUpdateGLFunctionPaul Lemire2018-08-142-59/+71
| | | | | | | | By dividing code into function which make following the bigger picture easier Change-Id: I7c43178d5484b7d387f6ce7b9c36025d8e13c642 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Properly update properties from Backend to Frontend texturesPaul Lemire2018-08-082-10/+31
| | | | | | | | | | | | | | | | | | | Taking into account we have texture sharing in the backend, we can only update frontend texture properties once we have created the shared backend texture. Code was adjusted to retrieve these properties when creating the GLTexture. Such changes are stored and sent on the next run loop from a job where they are distributed to all referenced frontend Texture. The status property handling has also been updated to send status changes to all shared textures instead of just the texture whose data generator is used to gather the data. A manual test checking texture property updates, sharing and remote url sharing has also been added. Change-Id: I8ed2449fe57c9d7337580b0f7561f974cbd5006d Task-number: QTBUG-65775 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix QTextureImageData data access with individual TextureImagesLaszlo Agocs2018-06-271-3/+5
| | | | | | Task-number: QTBUG-69138 Change-Id: I0d980db0873af4f64dddc356d6d3ec4bc4c81857 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* GLTexture: don't assert on empty image data contentv5.11.1Paul Lemire2018-06-131-1/+8
| | | | | | | | | | | | | | Having empty image data is possible under these circumstances: - invalid url in the generator - generator not yet initialized - empty QTextureImage created These are therefore valid use cases where we should rather help user diagnose the issue (e.g warn invalid path) rather than forcefully asserting. Change-Id: I14b705dddf775136ec1a719ba2d9ec995368e62e Task-Id: QTBUG-68805 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix flashing and crashing of scene2dMäättä Antti2018-05-292-2/+16
| | | | | | | | | Prevent simultanious usage of the GLTexture being rendered to by scene2d. Task-number: QTBUG-68511 Task-number: QT3DS-1792 Change-Id: I88de12cba68ef7af2c7afb1f6e9d6143028efc86 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* ES2: Do not set Mip Levels on GL Textures when its not supportedv5.11.0-beta4Andy Nichols2018-04-121-2/+4
| | | | | | | | | By checking the for the TextureMipMapLevel feature we can avoid loads of qWarning messages when running on ES2. In practice these calls were just ignored QOpenGLTexture, but this will prevent the warnings. Change-Id: Ie61ce9ac546b48395b247e78f8fbbbed82399ede Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Move Renderer specific classes into new folderPaul Lemire2018-03-196-0/+1006
This is another step toward isolating the renderer from the render aspect Change-Id: I4031675b961d6645b65bbe05cf62d150993038b0 Task-number: QTBUG-61151 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>