代码之家  ›  专栏  ›  技术社区  ›  user8092801

JOGL:GLProfile。当GL4可用时,getDefault()返回GL2

  •  0
  • user8092801  · 技术社区  · 7 年前

    方法GLProfile。当GL4可用时,getDefault()返回GL2。为什么?我使用的是Ubuntu 17.04,处理器是Intel Core i5-7500(视频适配器是Intel HD Graphics 630,它支持GL4(如此图形卡的规范中所述)。

    输出 glxinfo | grep -i opengl

    OpenGL vendor string: Intel Open Source Technology Center
    OpenGL renderer string: Mesa DRI Intel(R) Kabylake GT2 
    OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.0.7
    OpenGL core profile shading language version string: 4.50
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 3.0 Mesa 17.0.7
    OpenGL shading language version string: 1.30
    OpenGL context flags: (none)
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 17.0.7
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    
    1 回复  |  直到 5 年前
        1
  •  0
  •   user8092801 user8092801    5 年前

    因此,也许我在linux下的显卡驱动程序不支持GL4。(但我的显卡支持它)