Skip to content
Snippets Groups Projects
Commit a925c896 authored by Germano Cavalcante's avatar Germano Cavalcante Committed by Jeroen Bakker
Browse files

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.
parent 531e4fcf
Branches
Tags
No related merge requests found
...@@ -480,8 +480,7 @@ void blf_glyph_render(FontBLF *font, GlyphCacheBLF *gc, GlyphBLF *g, float x, fl ...@@ -480,8 +480,7 @@ void blf_glyph_render(FontBLF *font, GlyphCacheBLF *gc, GlyphBLF *g, float x, fl
if (gc->texture) { if (gc->texture) {
GPU_texture_free(gc->texture); GPU_texture_free(gc->texture);
} }
gc->texture = GPU_texture_create_nD( gc->texture = GPU_texture_create_2d(w, h, GPU_R8, NULL, NULL);
w, h, 0, 1, NULL, GPU_R8, GPU_DATA_UNSIGNED_BYTE, 0, false, NULL);
gc->bitmap_len_landed = 0; gc->bitmap_len_landed = 0;
} }
......
...@@ -7,7 +7,7 @@ flat in int interp_size; ...@@ -7,7 +7,7 @@ flat in int interp_size;
out vec4 fragColor; out vec4 fragColor;
uniform sampler1DArray glyph; uniform sampler2D glyph;
const vec2 offsets4[4] = vec2[4]( 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)); vec2(-0.5, 0.5), vec2(0.5, 0.5), vec2(-0.5, -0.5), vec2(-0.5, -0.5));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment