Fix T77651: Black screen on Blender startup on ChromeOS
Apparently `textureSize` doesn't work with `sampler1DArray` on this OS. Thanks to @dave1853 for finding the source of the problem.
This commit is contained in:
parent
1c6e338d59
commit
6e56b42faa
Notes:
blender-bot
2023-02-14 05:51:15 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #77651, ChromeOS: Black screen/window on startup: Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -506,7 +506,7 @@ void blf_glyph_render(FontBLF *font, GlyphCacheBLF *gc, GlyphBLF *g, float x, fl
|
|||
if (gc->texture) {
|
||||
GPU_texture_free(gc->texture);
|
||||
}
|
||||
gc->texture = GPU_texture_create_1d_array(__func__, w, h, 1, GPU_R8, NULL);
|
||||
gc->texture = GPU_texture_create_2d(__func__, w, h, 1, GPU_R8, NULL);
|
||||
|
||||
gc->bitmap_len_landed = 0;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ flat in int interp_size;
|
|||
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform sampler1DArray glyph;
|
||||
uniform sampler2D glyph;
|
||||
|
||||
const vec2 offsets4[4] = vec2[4](
|
||||
vec2(-0.5, 0.5), vec2(0.5, 0.5), vec2(-0.5, -0.5), vec2(-0.5, -0.5));
|
||||
|
|
Loading…
Reference in New Issue