Fix ENet IPv6 address issue, fix text rendering not working

master
Celeste Wouters 2022-07-03 21:25:01 +02:00
parent b2a454b475
commit c9a9cd9e3e
No known key found for this signature in database
GPG Key ID: 6E9DA8063322434B
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ void Host::create(Port port, uint maxconn) {
host = enet_host_create(nullptr, 1, static_cast<size_t>(Channels::MAX), 0, 0);
} else { // Server
ENetAddress address;
address.host = 0;
address.host = { 0 };
address.port = port;
host = enet_host_create(&address, maxconn, static_cast<size_t>(Channels::MAX), 0, 0);
}

View File

@ -60,7 +60,7 @@ void Text::setScale(int scaleX, int scaleY) {
}
void Text::updateMatrix() {
m_matrix = glm::scale(mat4(), vec3(m_scaleX, m_scaleY, 1.f));
m_matrix = glm::scale(mat4(1.f), vec3(m_scaleX, m_scaleY, 1.f));
}
void Text::updateText() {