Fix ENet IPv6 address issue, fix text rendering not working
parent
b2a454b475
commit
c9a9cd9e3e
|
@ -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);
|
host = enet_host_create(nullptr, 1, static_cast<size_t>(Channels::MAX), 0, 0);
|
||||||
} else { // Server
|
} else { // Server
|
||||||
ENetAddress address;
|
ENetAddress address;
|
||||||
address.host = 0;
|
address.host = { 0 };
|
||||||
address.port = port;
|
address.port = port;
|
||||||
host = enet_host_create(&address, maxconn, static_cast<size_t>(Channels::MAX), 0, 0);
|
host = enet_host_create(&address, maxconn, static_cast<size_t>(Channels::MAX), 0, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ void Text::setScale(int scaleX, int scaleY) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Text::updateMatrix() {
|
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() {
|
void Text::updateText() {
|
||||||
|
|
Loading…
Reference in New Issue