lundi 3 octobre 2016

Where I lose memory? [on hold]

can someone help me? I'm getting EXC_BAD_ACCESS (code=1, address=0x8) error, I know this mean, that I'm lost memory somewhere, but I couldn't find it.

    Shader shader;
shader.SetFragmentShaderSource(fragmentShader);
shader.SetVertexShaderSource(vertexShader);
Texture texture;
Model model(vertices, shader, texture);
shader.Bind();

It show me an error on shader.Bind(), but when I breakpoint on model initialization I see data enter image description here

Aucun commentaire:

Enregistrer un commentaire