Hi I started today to make an OpenGL program, I made the shader class, mesh class and texture class. When I tried to test it, it stopped working. After a little debug with Visual Studio(thanks Microsoft for this useful tool). It showed me that my problem is:
I use glew. I searched on internet, and I found that glewExperimental needs to be GL_TRUE, so I init it like this:
glewExperimental = GL_TRUE; GLenum error = glewInit(); if (error != GLEW_OK) std::cerr << "Glew: " << glewGetErrorString(error);
Error given by Visual Studio:
Exception thrown at 0x00000000 in DirtyCraft.exe: 0xC0000005: Access violation executing location 0x00000000. occurred
I do use Glew 2.0.0, 32-bits, SDL2.
If you need any additional information, feel free to request them.