Page 1 of 2
OpenGL Sample not working
Posted: 11 May 2017, 19:27
by Wanderer
Hello
I am discover Noesis GUI, and want test it on OpenGL. I compile D3D11 sample and it working - I can see two cubes and login menu. OpenGL compile without problem, but window show me blue background and nothing else.
I have Intel graphic HD 3000 on my notebook.
Re: OpenGL Sample not working
Posted: 11 May 2017, 23:23
by jsantos
Could define the following when compiling GLRenderdevice.cpp and try again?
#define NS_ASSERTS_ENABLED 1
#define NS_DEBUG_CFG
Re: OpenGL Sample not working
Posted: 11 May 2017, 23:48
by Wanderer
Tried but now program crash on start.
Re: OpenGL Sample not working
Posted: 11 May 2017, 23:58
by jsantos
Is the error handled being invoked?
Re: OpenGL Sample not working
Posted: 12 May 2017, 00:20
by Wanderer
I am not sure if I understand, but I get Windows message = Program stop working and I can only click on End Program or Stop Program (I translate it to english).
When local win debug is run, I get this call stacks:
> SpiningCube.exe!Noesis::Render::GLRenderDevice::CreatePrograms() Line 964 C++
SpiningCube.exe!Noesis::Render::GLRenderDevice::GLRenderDevice() Line 176 C++
SpiningCube.exe!Noesis_Init() Line 33 C++
SpiningCube.exe!main(int argc, char * * argv) Line 183 C++
Re: OpenGL Sample not working
Posted: 12 May 2017, 00:31
by jsantos
The error handler is not being invoked?
void NoesisErrorHandler(const NsChar* filename, NsSize line, const NsChar* desc, NsBool fatal)
{
printf("\nERROR: %s\n\n", desc);
}
You should have en error in the console.
Re: OpenGL Sample not working
Posted: 12 May 2017, 00:40
by Wanderer
No, I forgot mention, it looks like console is frozen (have light gray color instead black and no text is there)
This is everything what I get:

Re: OpenGL Sample not working
Posted: 12 May 2017, 00:56
by jsantos
Could you launch from inside the debugger and paste me here the exact stack where the error is happening?
Re: OpenGL Sample not working
Posted: 12 May 2017, 01:08
by Wanderer
How can I find where is error happening?
EDIT:
I guess, exact error is, error with arrow? If yes then:
> SpiningCube.exe!Noesis::Render::GLRenderDevice::CreatePrograms() Line 964 C++
There is picture from debugger

Re: OpenGL Sample not working
Posted: 12 May 2017, 01:57
by jsantos
What kind of exception are you getting when the debugger halts there?