PDA

View Full Version : max texture size



T2k
01-23-2002, 01:39 AM
ive tried the following code, the rc, dc and so on are correctly set, but i
get a max texture size of 3095472, is there something wrong with my code, or
is it something else ???

GLint max_texture_size;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_texture_size);

Bob
01-23-2002, 02:58 AM
Are you REALLY sure you have the RC setup properly? Try explicitly set the variable max_texture_size to something before calling glGetIntegerv. If the value does not change, it problem is probably the RC not being valid.

T2k
01-23-2002, 03:35 AM
ok found it, i have forgotten to call:
wglMakeCurrent(m_hDC, m_hRC);
before using the commands ...