From 08620e33a9e1537b8f2c1730e3db42a389514ee3 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sun, 20 Nov 2022 11:21:19 -0500 Subject: [PATCH] Add README badges for CI --- README.md | 2 ++ src/texture.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1897845..66562bb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # Qtk +[![All Builds](https://github.com/shaunrd0/qtk/actions/workflows/all-builds.yml/badge.svg)](https://github.com/shaunrd0/qtk/actions/workflows/all-builds.yml) +[![Linting](https://github.com/shaunrd0/qtk/actions/workflows/linting.yml/badge.svg)](https://github.com/shaunrd0/qtk/actions/workflows/linting.yml) Practice project for learning about using OpenGL in Qt widget applications. Model loader using [Assimp](https://assimp.org/) within a Qt widget application. diff --git a/src/texture.cpp b/src/texture.cpp index 21868e5..ac05a26 100644 --- a/src/texture.cpp +++ b/src/texture.cpp @@ -72,8 +72,9 @@ QOpenGLTexture * OpenGLTextureFactory::initCubeMap( int i = 0; for(const auto & face : faces) { QImage faceImage(faceTextures[i]); - if(faceImage.isNull()) + if(faceImage.isNull()) { qDebug() << "Error loading cube map image\n"; + } faceImage = faceImage.convertToFormat(QImage::Format_RGBA8888); // On the first iteration, set format and allocate texture storage