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
it is crash with imgui-SDL renderer #921
Comments
I will need some more information I'm afraid. How does the error manifest, any error messages, ideally something to build and run myself. |
#include <GLES3/gl3.h> #include <SDL2/SDL.h> #define SOKOL_IMPL #include "sokol_gfx.h" int view_width = 1280, view_height = 720; int main(int, char **) { // Setup SDL // Create window with SDL_Renderer graphics context // Setup Dear ImGui context // Setup Dear ImGui style // Setup Platform/Renderer backends // Load Fonts // Our state /* setup sokol_gfx */ /* a vertex buffer */ /* a shader */ /* a pipeline state object (default render states are fine for triangle) */ /* resource bindings */ /* default pass action (clear to grey) */ // Main loop
} /* cleanup */ // Cleanup SDL_DestroyRenderer(renderer); return 0; |
sokol_gfx.h:8204: void _sg_gl_begin_pass(_sg_pass_t *, const sg_pass_action *, int, int): Assertion `glGetError() == 0' failed. |
/*
// Start the Dear ImGui frame
ImGui_ImplSDLRenderer2_NewFrame();
ImGui_ImplSDL2_NewFrame();
ImGui::NewFrame();
*/
The text was updated successfully, but these errors were encountered: