Compare commits
6 commits
03c1990985
...
8b789fc9b6
Author | SHA1 | Date | |
---|---|---|---|
8b789fc9b6 | |||
bb3132d4ba | |||
31aa28909e | |||
2538673fb2 | |||
d23206b1fc | |||
0196d80944 |
2 changed files with 5 additions and 7 deletions
|
@ -24,10 +24,9 @@ int main() {
|
|||
|
||||
glfwInit();
|
||||
glfwWindowHint(GLFW_SAMPLES, 4);
|
||||
// glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_ANY_PROFILE);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
|
||||
GLFWwindow *window = glfwCreateWindow(1200, 900, "OpenBlocks Client ALPHA", NULL, NULL);
|
||||
glfwSetKeyCallback(window, keyCallback);
|
||||
glfwSetMouseButtonCallback(window, mouseButtonCallback);
|
||||
|
|
|
@ -14,9 +14,8 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
QSurfaceFormat format;
|
||||
format.setSamples(4);
|
||||
format.setVersion(2, 1);
|
||||
// format.setProfile(QSurfaceFormat::CompatibilityProfile); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
|
||||
format.setProfile(QSurfaceFormat::NoProfile);
|
||||
format.setVersion(3, 3);
|
||||
format.setProfile(QSurfaceFormat::CompatibilityProfile); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
|
||||
QSurfaceFormat::setDefaultFormat(format);
|
||||
|
||||
QApplication a(argc, argv);
|
||||
|
|
Loading…
Add table
Reference in a new issue