max texture size

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);

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.

ok found it, i have forgotten to call:
wglMakeCurrent(m_hDC, m_hRC);
before using the commands …