Skip to content

Commit

Permalink
Merge pull request #276 from pthom/pthom/master_fixes
Browse files Browse the repository at this point in the history
Pthom/master fixes
  • Loading branch information
KinoxKlark committed Apr 21, 2022
2 parents 573d2d6 + abaa071 commit 2307625
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/examples/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def fb_to_window_factor(window):


def main():
imgui.create_context()
window = impl_glfw_init()
impl = GlfwRenderer(window)
font_scaling_factor = fb_to_window_factor(window)
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/integrations_all_in_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def pysdl2_init():
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8)
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1)
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1)
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 16)
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 8)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1)
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/integrations_pysdl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def impl_pysdl2_init():
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8)
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1)
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1)
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 16)
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 8)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1)
Expand Down

0 comments on commit 2307625

Please sign in to comment.