So even though I can run my program nicely, it seems few others can.
Here's some init code, with irrelevant stuff snipped out between lines:
if( !glfwInit() )
log("Failed to initialize GLFW\n");
Code for prefs and such goes here.
glfwOpenWindowHint(GLFW_FSAA_SAMPLES, 4);
if(oldopengl)
{
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);
}
else
{
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 4);
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 0);
}
glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
if(fullscreen)
{
// Open a window and create its OpenGL context
if( !glfwOpenWindow( screenx,screeny, 0,0,0,0, 32,0, GLFW_FULLSCREEN ) )
{
log("Failed to open GLFW window. If you have an older (Intel) GPU, they are not 4.0 compatible.\n");
glfwTerminate();
}
}
else
{
// Open a window and create its OpenGL context
if( !glfwOpenWindow( screenx,screeny, 0,0,0,0, 32,0, GLFW_WINDOW ) )
{
log("Failed to open GLFW window. If you have an older (Intel) GPU, they are not 4.0 compatible.\n");
glfwTerminate();
}
}
// Initialize GLEW
glewExperimental = true; // Needed for core profile
if (glewInit() != GLEW_OK)
log("Failed to initialize GLEW\n");
Excuse the lack of formatting, I can't add tabs easily here.
Also, I actually took out a lot of other code in between lines, just leaving the OpenGL init code.
I can run it fine. I have an older but higher tier desktop with Windows 7, 6 core processor, 8gb ram and a GTX 560 that can run it well.
I also have a Windows 8 laptop with Integrated Graphics that can run it as well, albeit with lower settings to maintain framerates.
Yet it seems that a majority of the people I give the application to simply can't run it. As in it crashes imminently.
Log files often come back like this:
0 : Program started.
0.00 : 4 quotes read.
0.00 : Reading prefs file.
0.05 : Failed to open GLFW window. If you have an older (Intel) GPU, they are not 4.0 compatible.
0 : Failed to initialize GLEW
0 : OpenAL: No Error
0 : Networking initalized.
0 : Initalized.
0 : Error: Missing GL version
0 : Using glew version: 1.7.0
0 :
0 :
0 :
0 :
0 : Opengl version used: 13107512.2007382186
In cases like the above, OpenGL (specifically GLFW in this case) doesn't even load.
Other times the logs look like this:
0 : Program started.
0.00 : 4 quotes read.
0.00 : Reading prefs file.
0.38 : OpenAL: No Error
0.38 : Networking initalized.
0.38 : Initalized.
0.38 : Using glew version: 1.7.0
0.38 : AMD Radeon HD 6800 Series
0.38 : ATI Technologies Inc.
0.39 : 3.2.12618 Core Profile Context 13.251.0.0
0.39 : 4.30
0.39 : Opengl version used: 3.2
0.39 : Compiling shader: StandardShadingVertex.glsl
It seems to load okay, but loading the shaders crashes the program.
(I'll post shader loading code in a second.)
I realize I haven't provided a ton of information, so I'll awnser questions as needed and find the shader loading code to post.
Lastly, I can offer the program it self if anyone wants to try running it.
Here:
http://syerjchep.org/release.zip
If you can even get to the black screen with white text on it. Then it works for you.