assorted fixes for Windows/VC8
authorKarl Schultz <k.w.schultz@comcast.net>
Tue, 24 Apr 2007 14:53:28 +0000 (08:53 -0600)
committerBrian <brian@yutani.localnet.net>
Tue, 24 Apr 2007 14:53:28 +0000 (08:53 -0600)
src/glu/sgi/glu.def
src/glut/glx/glut_win.c
src/mesa/drivers/osmesa/osmesa.def
src/mesa/drivers/windows/gdi/mesa.def
src/mesa/drivers/windows/gdi/wmesa.c
src/mesa/main/imports.c
src/mesa/shader/slang/slang_vartable.c

index ffec651a0a46ec4f9212246d77404c8ff7a49e8b..0c8b021767eef3936d92d76c6fbfaba352849371 100644 (file)
@@ -1,4 +1,4 @@
-DESCRIPTION 'Mesa GLU (OpenGL work-alike) for Win32'
+;DESCRIPTION 'Mesa GLU (OpenGL work-alike) for Win32'
 VERSION 5.1
 ;
 ; Module definition file for GLU (GLU32.DLL)
index 0f48e0ba339a7976014c88ba744523b356fd2e92..18554b3e97f69a1061db257febf1e3db45e30220 100644 (file)
@@ -349,12 +349,18 @@ getVisualInfoRGB(unsigned int mode)
     __glutScreen, list);
 }
 
+#ifndef VisualIDMask
+#define VisualIDMask 0
+#endif
+
 static XVisualInfo *
 getVisualInfoID(int id)
 {
    XVisualInfo temp;
    int count;
+#if !defined(_WIN32)
    temp.visualid = id;
+#endif
    return XGetVisualInfo(__glutDisplay, VisualIDMask, &temp, &count);
 }
 
index a92a30f351dbdeb607b33de8911b705fcf60289d..71e96873d81235a1af196ef27d634e54723be432 100644 (file)
@@ -1,4 +1,4 @@
-DESCRIPTION 'Mesa OSMesa lib for Win32'
+;DESCRIPTION 'Mesa OSMesa lib for Win32'
 VERSION 4.1
 
 EXPORTS
index 8d6542812151e5e53a6ccefde14ce5a7144e5afa..c525945426fa6e8f71d8c69097adfb034be3c3f0 100644 (file)
@@ -1,6 +1,6 @@
 ; DO NOT EDIT - This file generated automatically by mesadef.py script
-DESCRIPTION 'Mesa (OpenGL work-alike) for Win32'
-VERSION 6.0
+;DESCRIPTION 'Mesa (OpenGL work-alike) for Win32'
+VERSION 6.5
 ;
 ; Module definition file for Mesa (OPENGL32.DLL)
 ;
@@ -867,6 +867,8 @@ EXPORTS
        _glapi_get_proc_address
        _mesa_add_soft_renderbuffers
        _mesa_add_renderbuffer
+       _mesa_attach_shader
+       _mesa_bind_attrib_location
        _mesa_buffer_data
        _mesa_buffer_get_subdata
        _mesa_buffer_map
@@ -875,15 +877,21 @@ EXPORTS
        _mesa_bzero
        _mesa_calloc
        _mesa_choose_tex_format
+       _mesa_compile_shader
        _mesa_compressed_texture_size
        _mesa_create_framebuffer
+       _mesa_create_program
+       _mesa_create_shader
        _mesa_create_visual
        _mesa_delete_array_object
        _mesa_delete_buffer_object
        _mesa_delete_program
+       _mesa_delete_program2
+       _mesa_delete_shader
        _mesa_delete_texture_object
        _mesa_destroy_framebuffer
        _mesa_destroy_visual
+       _mesa_detach_shader
        _mesa_enable_1_3_extensions
        _mesa_enable_1_4_extensions
        _mesa_enable_1_5_extensions
@@ -894,13 +902,28 @@ EXPORTS
        _mesa_free
        _mesa_free_context_data
        _mesa_free_texture_image_data
+       _mesa_get_active_attrib
+       _mesa_get_active_uniform 
+       _mesa_get_attached_shaders
+       _mesa_get_attrib_location
        _mesa_get_compressed_teximage
        _mesa_get_current_context
+       _mesa_get_handle
+       _mesa_get_programiv
+       _mesa_get_program_info_log
+       _mesa_get_program_register
+       _mesa_get_shaderiv
+       _mesa_get_shader_info_log
+       _mesa_get_shader_source
        _mesa_get_teximage
-       _mesa_init_default_imports
+       _mesa_get_uniformfv
+       _mesa_get_uniform_location
        _mesa_init_driver_functions
        _mesa_init_renderbuffer
        _mesa_initialize_context
+       _mesa_is_program
+       _mesa_is_shader
+       _mesa_link_program
        _mesa_make_current
        _mesa_memcpy
        _mesa_memset
@@ -914,10 +937,12 @@ EXPORTS
        _mesa_new_texture_image
        _mesa_new_texture_object
        _mesa_problem
+       _mesa_reference_renderbuffer
        _mesa_remove_renderbuffer
        _mesa_render_texture
        _mesa_ResizeBuffersMESA
        _mesa_resize_framebuffer
+       _mesa_shader_source
        _mesa_store_compressed_teximage1d
        _mesa_store_compressed_teximage2d
        _mesa_store_compressed_teximage3d
@@ -932,7 +957,12 @@ EXPORTS
        _mesa_store_texsubimage3d
        _mesa_strcmp
        _mesa_test_proxy_teximage
+       _mesa_uniform
+       _mesa_uniform_matrix
+       _mesa_unreference_framebuffer
        _mesa_update_framebuffer_visual
+       _mesa_use_program
+       _mesa_validate_program
        _mesa_Viewport
        _swrast_Accum
        _swrast_Bitmap
@@ -954,6 +984,7 @@ EXPORTS
        _swrast_copy_texsubimage3d
        _swrast_CreateContext
        _swrast_DestroyContext
+       _swrast_exec_fragment_program
        _swrast_InvalidateState
        _swrast_ReadPixels
        _swsetup_Wakeup
index 078b590af871f3789d385bbc7652ad323b7e6184..00d9ee77835f8198028a08561e85234c2201b73a 100644 (file)
@@ -1448,3 +1448,25 @@ void gl_dispatch_stub_761(void){};
 void gl_dispatch_stub_766(void){};
 void gl_dispatch_stub_767(void){};
 void gl_dispatch_stub_768(void){};
+
+void gl_dispatch_stub_562(void){};
+void gl_dispatch_stub_563(void){};
+void gl_dispatch_stub_564(void){};
+void gl_dispatch_stub_567(void){};
+void gl_dispatch_stub_568(void){};
+void gl_dispatch_stub_569(void){};
+void gl_dispatch_stub_580(void){};
+void gl_dispatch_stub_581(void){};
+void gl_dispatch_stub_606(void){};
+void gl_dispatch_stub_654(void){};
+void gl_dispatch_stub_655(void){};
+void gl_dispatch_stub_656(void){};
+void gl_dispatch_stub_739(void){};
+void gl_dispatch_stub_740(void){};
+void gl_dispatch_stub_741(void){};
+void gl_dispatch_stub_748(void){};
+void gl_dispatch_stub_749(void){};
+void gl_dispatch_stub_769(void){};
+void gl_dispatch_stub_770(void){};
+void gl_dispatch_stub_771(void){};
+
index 9de7a89c9980325afe96968958aebf8f1da492c6..786f812fce26a214be2f559ad8c4eb726f3e4301 100644 (file)
@@ -584,11 +584,11 @@ _mesa_ffsll(long long val)
 
    assert(sizeof(val) == 8);
 
-   bit = ffs(val);
+   bit = _mesa_ffs(val);
    if (bit != 0)
       return bit;
 
-   bit = ffs(val >> 32);
+   bit = _mesa_ffs(val >> 32);
    if (bit != 0)
       return 32 + bit;
 
index 5814481ea793a765b6e2f84a31f6dbc1116fcebc..8a3c299d19cad48c6fe33975f785e45d82f21fe7 100644 (file)
@@ -319,9 +319,9 @@ GLboolean
 _slang_is_temp(const slang_var_table *vt, const slang_ir_storage *store)
 {
    struct table *t = vt->Top;
+   GLuint comp;
    assert(store->Index >= 0);
    assert(store->Index < vt->MaxRegisters);
-   GLuint comp;
    if (store->Swizzle == SWIZZLE_NOOP)
       comp = 0;
    else