Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android, Text / Font renders as Squares

When I try sharing an image through my program, the share menu sometimes comes out looking like this.

Some Notes:

1) It doesn't seem to occur on the first run, but only after I have paused the application and gone back in.

2) My app uses OpenGL extensively. It is possible I am changing a shared setting, then not returning the value back to the original.

3) Everything else in my application works fine.

4) I have tried removing all the calls that allow transparencies, and I am still having this problem.

enter image description here

like image 287
user2820531 Avatar asked Apr 29 '14 12:04

user2820531


1 Answers

I have this problem too. I am using a GLES 2.0 context, the only way I have been able to get rid of this... (it's going to sound weird) is by NOT calling

GLES20.glDeleteTextures ( hTextures.length, hTextures, 0 );

It wasn't happening before I started clearing up my textures, and it hasn't happened again since removing it. I have no idea why that would be though?

I'm also not sure of the ramifications of not releasing my textures.

If anyone can shed light on the matter, that'd be great, there's a few versions of questions floating around. Appears it's a problem in Unity for android and everything.

like image 186
lex Avatar answered Sep 27 '22 19:09

lex