fix some warnings
This commit is contained in:
parent
1d98333660
commit
e3586f7dbf
2 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ public:
|
|||
TilesEditorEffect();
|
||||
~TilesEditorEffect() override;
|
||||
|
||||
void reconfigure(ReconfigureFlags);
|
||||
void reconfigure(ReconfigureFlags) override;
|
||||
|
||||
int animationDuration() const;
|
||||
void setAnimationDuration(int duration);
|
||||
|
|
|
@ -740,11 +740,11 @@ QImage GLTexture::toImage() const
|
|||
GLint currentTextureBinding;
|
||||
glGetIntegerv(GL_TEXTURE_BINDING_2D, ¤tTextureBinding);
|
||||
|
||||
if (currentTextureBinding != texture()) {
|
||||
if (GLuint(currentTextureBinding) != texture()) {
|
||||
glBindTexture(GL_TEXTURE_2D, texture());
|
||||
}
|
||||
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, ret.bits());
|
||||
if (currentTextureBinding != texture()) {
|
||||
if (GLuint(currentTextureBinding) != texture()) {
|
||||
glBindTexture(GL_TEXTURE_2D, currentTextureBinding);
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue