message: Removed code duplication, better style.
diff: @@ -1807,10 +1807,12 @@ void OpenGLDriver::updateCubeImage(Handle<HwTexture> th, uint32_t level,
  DEBUG_MARKER()
  GLTexture* t = handle_cast<GLTexture *>(th);
  + auto width = std::max(1u, t->width >> level);
  + auto height = std::max(1u, t->height >> level);
  if (data.type == PixelDataType::COMPRESSED) {
  - setCompressedTextureData(t, level, 0, 0, 0, std::max(1u, t->width >> level), std::max(1u, t->height >> level), 0, std::move(data), &faceOffsets);
  + setCompressedTextureData(t, level, 0, 0, 0, width, height, 0, std::move(data), &faceOffsets);
  } else {
  - setTextureData(t, level, 0, 0, 0, std::max(1u, t->width >> level), std::max(1u, t->height >> level), 0, std::move(data), &faceOffsets);
  + setTextureData(t, level, 0, 0, 0, width, height, 0, std::move(data), &faceOffsets);
  }
  }
  