This commit is contained in:
Kovid Goyal 2021-12-30 20:44:30 +05:30
parent 07e6171dc5
commit 072fe91518
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -580,8 +580,7 @@ render_window_title(OSWindow *os_window, Screen *screen UNUSED, GLfloat xstart,
xstart = clamp_position_to_nearest_pixel(xstart, os_window->viewport_width);
ystart = clamp_position_to_nearest_pixel(ystart, os_window->viewport_height);
GLfloat height_gl = 2.f * (bar_height / (float)os_window->viewport_height);
gpu_data_for_image(&data, xstart, ystart,
xstart + width, ystart - height_gl);
gpu_data_for_image(&data, xstart, ystart, xstart + width, ystart - height_gl);
if (!data.texture_id) { glGenTextures(1, &data.texture_id); }
glBindTexture(GL_TEXTURE_2D, data.texture_id);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);