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

io.RenderDrawListsFn Crashing 1.60 #1616

Closed
ghost opened this issue Feb 14, 2018 · 7 comments
Closed

io.RenderDrawListsFn Crashing 1.60 #1616

ghost opened this issue Feb 14, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented Feb 14, 2018

Hello Omar Or anyone i was on ImGui 1.52 and i followed the Update of ImGui.

When it comes to Injecting ImGui Into GTA V. I seem to crash and when i debug it i goes to this

io.RenderDrawListsFn = ImGui_ImplDX11_RenderDrawLists;  // Alternatively you can set this to NULL and call ImGui::GetDrawData() after ImGui::Render() to get the same ImDrawData pointer.

Would there be any possible fix lol. For this to stop the crashing upon loading into the game ?. It only happend when i updated from 1.52 > 1.60 ImGui Thank You

image

@ocornut
Copy link
Owner

ocornut commented Feb 14, 2018

Please read the docs ("api breaking changes") and #1599.

@ocornut ocornut closed this as completed Feb 14, 2018
@ghost
Copy link
Author

ghost commented Feb 14, 2018

Yes i looked into it and read all of it. But im still confused on why it is crashing upon startup

@ocornut
Copy link
Owner

ocornut commented Feb 14, 2018 via email

@ghost
Copy link
Author

ghost commented Feb 15, 2018

Where do i call CreateContext(); And what are asserts and how to enable ?

@ocornut
Copy link
Owner

ocornut commented Feb 15, 2018

Where do i call CreateContext();

The examples are showing it and the link I posted has the answer for that literally on the first bold line.

And what are asserts and how to enable ?

https://www.google.com/search?q=what+are+asserts+c%2B%2B
https://www.google.com/search?q=how+to+enable+asserts+c%2B%2B

@ghost
Copy link
Author

ghost commented Feb 15, 2018

Aha Thank you i don't have asserts in my build and where do you put

ImGui::CreateContext() Before ImGUI Where would that be

I have script.cpp where i call my functions
and menu.cpp where it draws ImGui Where would i put it at the top of Render ?

Would it be like this
image

Or where do i put it

This is where it Draw's ImGui
image

I just don't know when you mean
YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END.

Where !!!!

image

@ghost
Copy link
Author

ghost commented Feb 16, 2018

I Add it to Menu::Render
YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END.

image

CRASH ALLWAYS HERE :( WHAT :( :(

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

1 participant