- Haxe 3.4.7
- Kha latest master (also tried previous versions)
- Two different Android devices: Mi MIX3 & Mi 5S (Android P & O), also will try with emulator
Drawing with g1 (setPixel) causes:
E/Adreno-GSL: <sharedmem_gpuobj_alloc:2436>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
W/Adreno-GSL: <gsl_memory_alloc_pure:2236>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
App is not crashing itself, just showing background color passed in g.begin(), any drawing operation is ignored
What I'm doing wrong?
Simple example, working on HTML5, but not on android:
package;
import kha.Color;
import kha.Framebuffer;
import kha.System;
class Main {
public static function main() {
System.start({ title: "Project" }, function (_) {
System.notifyOnFrames(render);
});
}
static function render(framebuffers:Array<Framebuffer>) {
var g = framebuffers[0].g2;
g.begin();
g.color = Color.Red;
g.fillRect(100, 100, 200, 200);
g.color = Color.Yellow;
g.drawLine(100, 400, 300, 400, 5);
g.end();
}
}
Thank you)