macOS: Fix segmentation fault when resizing window (#269)

This commit is contained in:
KaDiWa 2021-12-12 23:06:17 +01:00 committed by GitHub
parent 49aad5c586
commit 8927b29a69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ uint32_t upper_power_of_two(uint32_t v) {
// Set the pixel dimensions of the texture
texture_desc.width = new_width;
texture_desc.height = new_width;
texture_desc.height = new_height;
// Allocate the now texture
@ -252,7 +252,7 @@ uint32_t upper_power_of_two(uint32_t v) {
draw_state->texture = texture;
draw_state->texture_width = new_width;
draw_state->texture_height = new_width;
draw_state->texture_height = new_height;
}
// Calculate the number of bytes per row of our image.