[CelestialObject] Fixed rendering on Windows and Debian, maybe. (see #159)

This commit is contained in:
Quentin Bazin 2020-07-20 16:40:13 +02:00
parent 3c3d323e6f
commit 9c5f1b9374
4 changed files with 3 additions and 6 deletions

2
external/gamekit vendored

@ -1 +1 @@
Subproject commit fb10f8bbf8bcf88e77020a961412f52b83a125e6
Subproject commit 76fc2eadd95a96fdf31f302becc6b3b0868f479e

View File

@ -33,9 +33,6 @@
#include "GameTime.hpp"
#include "Vertex.hpp"
CelestialObject::CelestialObject() {
}
void CelestialObject::setTexture(const std::string &textureName) {
if (textureName.empty()) return;

View File

@ -34,7 +34,7 @@
class CelestialObject : public gk::Drawable, public gk::Transformable {
public:
CelestialObject();
CelestialObject() = default;
float width() const { return m_width; }
float height() const { return m_height; }

View File

@ -64,7 +64,7 @@ void Skybox::loadSky(const Sky &sky) {
}
catch (...) {
m_moon.setColor(gk::Color{240, 240, 240});
gkWarning() << "Failed to load moon texture" << sun.texture;
gkWarning() << "Failed to load moon texture" << moon.texture;
}
const Sky::StarsDefinition &stars = sky.starsDefinition();