If i call:

Code:
procedure TF3D_TextureFactory.BindTextureToLayer(id: integer; target: integer);
begin

    glActiveTextureARB(GL_TEXTURE0 + target);
    glEnable(GL_TEXTURE_2D);
    glBindTexture(texture_list[id].GLtarget, texture_list[id].Texture);

end;
with SDL OpenGL, program crash, but with dglOpenGL and no SDL work cool. What is problem?