[CelestialObject] Fixed rendering on Windows and Debian, maybe. (see #159)
This commit is contained in:
parent
3c3d323e6f
commit
9c5f1b9374
2
external/gamekit
vendored
2
external/gamekit
vendored
@ -1 +1 @@
|
||||
Subproject commit fb10f8bbf8bcf88e77020a961412f52b83a125e6
|
||||
Subproject commit 76fc2eadd95a96fdf31f302becc6b3b0868f479e
|
@ -33,9 +33,6 @@
|
||||
#include "GameTime.hpp"
|
||||
#include "Vertex.hpp"
|
||||
|
||||
CelestialObject::CelestialObject() {
|
||||
}
|
||||
|
||||
void CelestialObject::setTexture(const std::string &textureName) {
|
||||
if (textureName.empty()) return;
|
||||
|
||||
|
@ -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; }
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user