Recent

Author Topic: [solved] OpenGL glext does not work on Windows  (Read 3556 times)

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
[solved] OpenGL glext does not work on Windows
« on: January 19, 2015, 05:06:32 pm »
I want to use mipmapping per glGenerateMipmap(GL_TEXTURE_2D); In order to use this extension I have to load it first via FCanUseMipmaps:=Load_GL_VERSION_3_0; defined in the unit glext. This works like a charm on Linux but not on Windows. Neither the 3.0 extensions nor the 1.2 can be loaded. So I guess there is something completely wrong.

Can anyone check confirm the issue, or help me to get on track?
« Last Edit: January 20, 2015, 11:26:58 am by Ocye »
Lazarus 1.7 (SVN) FPC 3.0.0

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: [solved] OpenGL glext does not work on Windows
« Reply #1 on: January 20, 2015, 11:29:12 am »
Seems to be related where I call the function. On Linux it was possible to call it from the unit with my textures list, on Windows it works now after I moved the function to the initialization section of the OpenGL context.

Edit: Init procedure contains of MakeCurrent() which might be relevant for Windows.
« Last Edit: January 20, 2015, 11:32:31 am by Ocye »
Lazarus 1.7 (SVN) FPC 3.0.0

 

TinyPortal © 2005-2018