Spaces:
Paused
Paused
Suprhimp
commited on
Commit
·
501547f
1
Parent(s):
bfa5643
Update opengl.py
Browse files
opengl.py
CHANGED
|
@@ -42,8 +42,8 @@ def image_enhance(image, exposure, saturation, contrast, brightness, gamma, shad
|
|
| 42 |
# Create window
|
| 43 |
# Size (1, 1) for show nothing in window
|
| 44 |
glfw.window_hint(glfw.VISIBLE, False)
|
| 45 |
-
window = glfw.create_window(1, 1, "My OpenGL window", None, None)
|
| 46 |
-
|
| 47 |
|
| 48 |
# Terminate if any issue
|
| 49 |
if not window:
|
|
|
|
| 42 |
# Create window
|
| 43 |
# Size (1, 1) for show nothing in window
|
| 44 |
glfw.window_hint(glfw.VISIBLE, False)
|
| 45 |
+
# window = glfw.create_window(1, 1, "My OpenGL window", None, None)
|
| 46 |
+
window = glfw.create_window(image.width,image.height, "My OpenGL window", None, None)
|
| 47 |
|
| 48 |
# Terminate if any issue
|
| 49 |
if not window:
|