Skip to content

Bricksmith crashing because GL_VERTEXBUFFER, ... is not enabled #1

@d029940

Description

@d029940

Im on MacOS Mojave and compiling with Xcode 10

I am getting a SIGART at bricksmith_bsupnik/trunk/Bricksmith/Source/LDraw/Support/LDrawGLRenderer.m, line 232:
assert(glIsEnabled(GL_VERTEX_ARRAY));

It seems to be that GL_VERTEX_BUFFER was not enabled.
This is also true for:
assert(glIsEnabled(GL_NORMAL_ARRAY));
assert(glIsEnabled(GL_COLOR_ARRAY));

I put in LDrawGLView.m - internalInit - the following statements, just after
// CGLEnable(CGLGetCurrentContext(), kCGLCEMPEngine);

glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);

I am not sure what I am doing - I am not an OpenGL expert. But with these 3 statements, Bricksmith starts, but the windows managed by OpenGL are gray.

Are you using Xcode 9?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions