Thanks Laksen!
The problem seens to happens in the LaodFromStream.
I found the problem happens here :
Stream.Read(FFilterMin, SizeOf(FFilterMin));
Stream.Read(FFilterMag, SizeOf(FFilterMag));
TPHXTextureFilter = (
// GL_NEAREST
tfNearest,
// GL_LINEAR
tfLinear,
// GL_NEAREST_MIPMAP_NEAREST
tfNearestMipmapNearest,
// GL_LINEAR_MIPMAP_NEAREST
tfLinearMipmapNearest,
// GL_NEAREST_MIPMAP_LINEAR
tfNearestMipmapLinear,
// GL_LINEAR_MIPMAP_LINEAR
tfLinearMipmapLinear);
TPHXTextureFilterMag = tfNearest .. tfLinear;
TPHXTextureFilterMin = tfNearest .. tfLinearMipmapLinear;
Have you any ideia of what is wrong?