mirror of
https://github.com/csd4ni3l/music-player.git
synced 2026-01-01 12:13:42 +01:00
get max texture size from an opengl constant instead of a default of 16 by 16 thousand
This commit is contained in:
7
run.py
7
run.py
@@ -9,8 +9,11 @@ import pyglet
|
|||||||
pyglet.options.debug_gl = False
|
pyglet.options.debug_gl = False
|
||||||
|
|
||||||
import logging, datetime, json, sys, arcade
|
import logging, datetime, json, sys, arcade
|
||||||
|
window = pyglet.window.Window(visible=False, width=1, height=1)
|
||||||
arcade.ArcadeContext.atlas_size = (16384, 16384)
|
max_tex_size = pyglet.gl.GLint()
|
||||||
|
pyglet.gl.glGetIntegerv(pyglet.gl.GL_MAX_TEXTURE_SIZE, max_tex_size)
|
||||||
|
arcade.ArcadeContext.atlas_size = (max_tex_size.value, max_tex_size.value)
|
||||||
|
window.close()
|
||||||
|
|
||||||
from utils.utils import get_closest_resolution, print_debug_info, on_exception
|
from utils.utils import get_closest_resolution, print_debug_info, on_exception
|
||||||
from utils.acoustid_metadata import get_fpcalc_path
|
from utils.acoustid_metadata import get_fpcalc_path
|
||||||
|
|||||||
Reference in New Issue
Block a user