You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have all of the packages including opensimplex and they are all upgraded to or higher than the requirements i read in the requirements.txt file but i still get this error: ValueError: Requested OpenGL version 330, got version 310
Here is my code so far:
main.py:
from settings import *
import moderngl as mgl
import pygame as pg
import sys
btw- i googled this issue and it said that sometimes it has to do with the graphics on your computer so i switched to my desktop with a good graphics card and i still get this error
Your OpenGL does not support version 3.3. Switch the shader files #version 330 core to #version 310 core or #version 310 es and change your Pygame OpenGL configuration to match appropriately in the main.py file (if you need to)
I have all of the packages including opensimplex and they are all upgraded to or higher than the requirements i read in the requirements.txt file but i still get this error: ValueError: Requested OpenGL version 330, got version 310
Here is my code so far:
main.py:
from settings import *
import moderngl as mgl
import pygame as pg
import sys
class VoxelEngine:
def init(self):
pg.init()
pg.display.gl_set_attribute(pg.GL_CONTEXT_MAJOR_VERSION, 3)
pg.display.gl_set_attribute(pg.GL_CONTEXT_MAJOR_VERSION, 3)
pg.display.gl_set_attribute(pg.GL_CONTEXT_PROFILE_MASK, pg.GL_CONTEXT_PROFILE_CORE)
pg.display.gl_set_attribute(pg.GL_DEPTH_SIZE, 24)
if name == 'main':
app = VoxelEngine()
app.run()
settings:
from numba import njit
import numpy as np
import glm
import math
WIN_RES = glm.vec2(1600,900)
The text was updated successfully, but these errors were encountered: