Black ImGui Demo screen and Error Message in MSVC Command Window #6803
AugustusTurcarum
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 1 comment
-
The version directive you pass to Also in the future please ensure you use correct Markdown formatting in your questions, your code is very annoying to read as it is currently written. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I am using latest ImGui Docking Branch , GLFW 3.3.8 and GLAD libraries
My System Specifications:
Windows 11
AMD Ryzen 7 6800H with Radeon Graphics
Visual Studio 2022
I am following TheCherno Game Engine Series from his Youtube channel. He is using ImGui and GLFW for the Game Engine HAZEL that he is creating.
I am following the same steps as he progress.However I am experiencing an issue since the Game Engine starts using Docking Branch of ImGui library while he is still running without any issue.
I am getting an Error Display in MSVC Debug command window when I call "ImGui_ImplOpenGL3_NewFrame()" function inside the code below under ImGuiLayer::Begin function !
When I follow the Debug up to the Error Display, it is going through imgui_impl_opengl3.cpp --> ImGui_ImplOpenGL3_CreateDeviceObjects() --> CheckShader() function
Due to this Error message, ImGui::ShowDemoWindow function makes a black Imgui window appear
The link for Cherno's ImGuiLayer.cpp code : https://github.com/TheCherno/Hazel/blob/master/Hazel/src/Hazel/ImGui/ImGuiLayer.cpp
I am still following previous version of his code. It means my ImGuiLayer.cpp file and his is not exactly the same, but the way we call ImGuiLayer::Begin() function is the same.
My following of Cherno's code, a part of ImGuiLayer.cpp is below:
//////////////////////////////////////////////////////////////////////////////////
`#include "hzpch.h"
#include "Hazel/ImGui/ImGuiLayer.h"
#include <imgui.h>
//#define IMGUI_IMPL_API
#include <backends/imgui_impl_glfw.h>
#include <backends/imgui_impl_opengl3.h>
//#include "Platform/OpenGL/ImGuiOpenGLRenderer.h"
#include "Hazel/Core/Application.h"
// THIS PART IS TEMPORARY
#include <GLFW/glfw3.h>
#include <glad/glad.h>
namespace Hazel
{
}`
//////////////////////////////////////////////////////////////////////////////////
The Error message in MSVC Debug command window is:
It is always activating the error message inside CheckShader() function. I don't know if the reason is AMD Graphic Card or not . I checked FAQ, previous discussions but couln't find the solution.
Can someone help me with the solution for this problem ?
Any help would be much appreciated
Sincerely Yours
Beta Was this translation helpful? Give feedback.
All reactions