Skip to content

Commit

Permalink
[opengl] Fix tests running both on opengl and vulkan (#7006)
Browse files Browse the repository at this point in the history
Co-authored-by: Yi Xu <[email protected]>
  • Loading branch information
ailzhang and strongoier authored Dec 29, 2022
1 parent cd33d3e commit c1844bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions taichi/rhi/opengl/opengl_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ bool initialize_opengl(bool use_gles, bool error_tolerance) {
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
} else {
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
Expand Down

0 comments on commit c1844bd

Please sign in to comment.