HANDLE dll = LoadLibrary("opengl32.dll");
if(dll) {
gl_gen_textures = (gl_gen_textures_func)GetProcAddress(dll, "glGenTextures");
HANDLE dll = LoadLibrary("opengl32.dll");
if(dll) {
gl_gen_textures = (gl_gen_textures_func)GetProcAddress(dll, "glGenTextures");