Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emscripten Support #3

Open
SirNate0 opened this issue Jan 23, 2021 · 1 comment
Open

Emscripten Support #3

SirNate0 opened this issue Jan 23, 2021 · 1 comment

Comments

@SirNate0
Copy link

I saw in the forum thread that it didn't work with Emscripten, but I found the issue that was stopping it. The Graphics::Draw call used (the one specifying the baseVertexIndex) is not supported without GL3 support. Simply removing the specification of 0 for the base vertex index, as below, results in it working when built for Emscripten rather than silently failing.

// In SystemUI.cpp
                graphics->Draw(TRIANGLE_LIST, idxBufferOffset, cmd->ElemCount, /*0,*/ 0, vertexBuffer_.GetVertexCount());
@Enhex
Copy link
Owner

Enhex commented Jan 23, 2021

Hi,
I'm not actively maintaining this project so you're better off forking it to do changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants