I've been trying to see if I could figure out the problem here. Most of this shit goes right over my head, especially when sony libraries get involved, but my hunch is that your problem lies somewhere in load_png_texture(). My best guess is it has to do with the memset function limiting space and/or the creation of the celPngDec somewhere in this neighborhood.
Originally Posted by talmagal
Good luck and good work!
ret_png= ret= cellPngDecCreate(&mHandle, &InParam, &OutParam);
memset(data, 0xff, (DISPLAY_WIDTH * DISPLAY_HEIGHT * 4));
png_w= png_h= 0;
if(ret_png == CELL_OK)
memset(&src, 0, sizeof(CellPngDecSrc));
src.srcSelect = CELL_PNGDEC_FILE;
src.fileName = name;
src.spuThreadEnable = CELL_PNGDEC_SPU_THREAD_DISABLE;
ret_file=ret = cellPngDecOpen(mHandle, &sHandle, &src, &opnInfo);
if(ret == CELL_OK)
ret = cellPngDecReadHeader(mHandle, sHandle, &info);