Refactor texture handling #10

Merged
shaunrd0 merged 12 commits from texture into master 2022-11-24 22:26:54 +00:00
3 changed files with 3 additions and 4 deletions
Showing only changes of commit 0540cf11fd - Show all commits

View File

@ -1,4 +1,4 @@
name: Build Test
name: All Builds
on:
push:

View File

@ -1,4 +1,4 @@
name: Clang Tidy Format
name: Linting
on:
push:

View File

@ -72,9 +72,8 @@ 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