You are not logged in.

#1 2015-11-28 05:06:38

Debasish Patra
Member
Registered: 2014-03-06
Posts: 64

OpenGL C++ SegFault in

I am trying to learn opengl c++.
While compilation runs fine without any warning.
I am having issues while running the program. If required, i can upload source completely if required.
It segfaults at

m_program = glCreateProgram();

Full code in below link

http://pastebin.com/vA30vQQ1

I am stuck in this for 2 days sad
Any help is appreciated.

Last edited by Debasish Patra (2015-11-28 05:07:50)


Keep Calm, And Enjoy Life smile

Offline

#2 2015-12-05 05:09:37

nervously
Member
Registered: 2015-06-21
Posts: 2

Re: OpenGL C++ SegFault in

I don't mean to be rude, but people online aren't going to want to help you if you ask questions in this way sad.

You need to:

1) Upload all of the relevant source code (including your header) so that we have a chance to look at it,

2) Show that you've made a real effort to analyze the crash (you can't just say it segfaults), and

3) Never mention how much time you've spent on a problem! This is seen as an attempt to make others feel pity for you, even if that isn't your intention.

Offline

#3 2015-12-05 18:29:05

AaronBP
Member
Registered: 2012-08-06
Posts: 149
Website

Re: OpenGL C++ SegFault in

I know very little about ogl, but you probably need to initialize an opengl context before calling glCreateProgram.

Offline

Board footer

Powered by FluxBB