Message from discussion
Pyglet, OpenGL 3.2 on OS X Lion
Received: by 10.101.164.4 with SMTP id r4mr5360230ano.48.1315342455780;
Tue, 06 Sep 2011 13:54:15 -0700 (PDT)
X-BeenThere: pyglet-users@googlegroups.com
Received: by 10.101.171.12 with SMTP id y12ls3060389ano.2.gmail; Tue, 06 Sep
2011 13:54:12 -0700 (PDT)
Received: by 10.101.179.23 with SMTP id g23mr5337948anp.3.1315342452966;
Tue, 06 Sep 2011 13:54:12 -0700 (PDT)
Received: by 10.151.138.5 with SMTP id q5msybn;
Tue, 6 Sep 2011 13:14:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.184.7 with SMTP id l7mr684354anp.38.1315340064383; Tue, 06
Sep 2011 13:14:24 -0700 (PDT)
Received: by v18g2000yqj.googlegroups.com with HTTP; Tue, 6 Sep 2011 13:14:24
-0700 (PDT)
Date: Tue, 6 Sep 2011 13:14:24 -0700 (PDT)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1)
AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3,gzip(gfe)
Message-ID: <745b6fdd-84ea-4728-8def-86522a6f19bc@v18g2000yqj.googlegroups.com>
Subject: Pyglet, OpenGL 3.2 on OS X Lion
From: "T.J. Jankun-Kelly" <t...@acm.org>
To: pyglet-users <pyglet-users@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
I've been wanting use test out some of the latest OpenGL 3.2 support
on my Lion MBP (last year's model). It is capable of 3.2 support.
However, I cannot seem to get 3.2 working.
I have pyglet from the hg trunk installed in a virtualenv (with a
fixed pythonw). Here is the simple pyglet code:
===
import pyglet
config = pyglet.gl.Config(major_version=3, minor_version=2,
forward_compatible = True)
window = pyglet.window.Window(config=config, visible=False)
print('OpenGL version:', window.context.get_info().get_version())
print('OpenGL 3.2 support:', window.context.get_info().have_version(3,
2))
window.close()
===
And, when I run it:
(gfx)[03:12 PM] tjk@omnia (~/Documents/teaching/graphics/src):
pythonw pyglet_ogl3.py
('OpenGL version:', '2.1 NVIDIA-7.4.10')
('OpenGL version:', False)
Pointers are appreciate.
TJK