small patch to make mipmaps under linux work

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
specialtactics
Posts: 17
Joined: Tue Dec 09, 2003 9:03 am
Location: Germany

small patch to make mipmaps under linux work

Post by specialtactics »

Hi,
mipmaps for textures using opengl and linux didn't work, so i changed 3 lines or so and now they do (as far as i've tested). Here is a diff of COpenGLTexture.cpp:

9a10
> #include <GL/glu.h>
26c27
< hasMipMaps = false;
---
> // hasMipMaps = false;
85c86
< #ifdef _WIN32
---
> // #ifdef _WIN32
88c89
< #endif
---
> // #endif

Then just add -lGLU to the LIBS in Makefile (both for source as well as for the examples!).
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

nice :)
Bugfixes similar to this have been posted several times I think, so I should really put out the next release soon. :)
Post Reply