Menu

#273 glGenerateMipmap undefined in virtualbox

1.12.1
wont-fix
None
5
2015-05-11
2015-05-10
Anonymous
No

Hello,

I'm running an app built with Minko (http://minko.io). We use glew on Windows. I've recently tried to compile/run a simple example app (source: https://github.com/aerys/minko/tree/master/example/cube) inside a Windows 7 SP1 VM running inside VirtualBox. I'm using GLEW 1.12.0.

I've installed VirtualBox and setup hardware acceleration properly: GPU Caps tells me I have OpenGL 2.1 and I can run OpenGL apps. But my app crashes because of glGenerateMipmap.

How to reproduce:
Call glGenerateMipmap from the app running in a VirtualBox Windows 7 VM.
It looks like glGenerateMipmap is a null pointer.

Expected behavior:
The app should not crash and calling glGenerateMipmap should have the behavior specified by the OpenGL 2.1 specification.

Workaround:
Calling glGenerateMipmapEXT works fine though:

undef glGenerateMipmap

define glGenerateMipmap glGenerateMipmapEXT

I'm guessing it's not the way to go and that's not really portable. Any idea of how to fix this properly?

Thank you,

Discussion

  • Anonymous

    Anonymous - 2015-05-10

    My bad: glGenerateMipmap is not available before OpenGL 3.0, and VirtualBox has OpenGL 2.1

    https://www.opengl.org/sdk/docs/man/html/glGenerateMipmap.xhtml

     
  • Nigel Stewart

    Nigel Stewart - 2015-05-11
    • status: open --> wont-fix
    • assigned_to: Nigel Stewart
    • Priority: 1 --> 5
     
  • Nigel Stewart

    Nigel Stewart - 2015-05-11

    No worries, thanks for the follow-up.

     
MongoDB Logo MongoDB