Merge pull request #13356 from gcalero/show_jump_button

Don't hide jump button while moving
This commit is contained in:
Sam Gondelman 2018-06-13 09:52:30 -07:00 committed by GitHub
commit e25c6c5316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,11 +151,9 @@ void Basic2DWindowOpenGLDisplayPlugin::compositeExtra() {
batch.setModelTransform(stickTransform);
batch.draw(gpu::TRIANGLE_STRIP, 4);
if (!virtualPadManager.getLeftVirtualPad()->isBeingTouched()) {
batch.setResourceTexture(0, _virtualPadJumpBtnTexture);
batch.setModelTransform(jumpTransform);
batch.draw(gpu::TRIANGLE_STRIP, 4);
}
batch.setResourceTexture(0, _virtualPadJumpBtnTexture);
batch.setModelTransform(jumpTransform);
batch.draw(gpu::TRIANGLE_STRIP, 4);
});
}
#endif