fix 2D compass
This commit is contained in:
parent
f2f960f4f4
commit
c5f1ffaf64
2 changed files with 3 additions and 2 deletions
|
@ -65,8 +65,8 @@ FGMagRibbon::draw ()
|
|||
// Adjust to put the number in the centre
|
||||
xoffset -= 0.25;
|
||||
|
||||
FGCroppedTexture t = getTexture();
|
||||
t.setCrop(xoffset, yoffset, xoffset + 0.5, yoffset + 0.25);
|
||||
FGCroppedTexture *t = getTexture();
|
||||
t->setCrop(xoffset, yoffset, xoffset + 0.5, yoffset + 0.25);
|
||||
|
||||
glPushAttrib(GL_DEPTH_BUFFER_BIT);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
|
|
@ -491,6 +491,7 @@ public:
|
|||
_texture = texture;
|
||||
}
|
||||
virtual const FGCroppedTexture &getTexture () const { return _texture; }
|
||||
virtual FGCroppedTexture *getTexture() { return &_texture; }
|
||||
|
||||
private:
|
||||
FGCroppedTexture _texture;
|
||||
|
|
Loading…
Reference in a new issue