GL Extensions!

Hi all!

I m trying to make this extension work glActiveTextureARB(GL_TEXTURE0_ARB);

uder windows xp and sdl release 1.2.7… with VS .NET…

I ve installed Glee 3.0.5… I can compile without any warnings…

Here s how I do it:

#pragma comment(lib, “glee.lib”)
#include <glee.h>

#include “gl.h”
#pragma comment(lib, “opengl32.lib”)

int main(int in_argc, char **in_argv)
{
if (SDL_Init(SDL_INIT_VIDEO))
{
return -1;
}

SDL_WM_SetCaption(WINDOW_TITLE, NULL);

SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, WINDOW_BPP);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

GLeeInit();

SNIP…

The problem is each time I call:

glActiveTextureARB(GL_TEXTURE0_ARB);

it crash!!!

Anyone familiar with this?

THX

Hey Goloth,

That’s not an sdl question, check out the mailing list at
www.gameprogrammer.com for GL and other game programming help> ----- Original Message -----

From: neosettlers@sympatico.ca (Golgoth)
To:
Sent: Thursday, September 30, 2004 7:55 PM
Subject: [SDL] GL Extensions!!!

Hi all!

I m trying to make this extension work
glActiveTextureARB(GL_TEXTURE0_ARB);

uder windows xp and sdl release 1.2.7… with VS .NET…

I ve installed Glee 3.0.5… I can compile without any warnings…

Here s how I do it:

#pragma comment(lib, “glee.lib”)
#include <glee.h>

#include “gl.h”
#pragma comment(lib, “opengl32.lib”)

int main(int in_argc, char **in_argv)
{
if (SDL_Init(SDL_INIT_VIDEO))
{
return -1;
}

SDL_WM_SetCaption(WINDOW_TITLE, NULL);

SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, WINDOW_BPP);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

GLeeInit();

SNIP…

The problem is each time I call:

glActiveTextureARB(GL_TEXTURE0_ARB);

it crash!!!

Anyone familiar with this?

THX


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl