Brian Paul
519b23b21f
Lots of changes/fixes for rendering to framebuffer objects.
...
- When deleting texture objects, unbind from FBOs if necessary.
- Changed driver hooks for starting/ending render to texture.
- Now properly handle case where gl[Copy]TexImage() is called after
glFramebufferTexture[123]D(). That didn't work before.
2006-03-20 18:51:57 +00:00
Brian Paul
06f606ce57
Remove _IsPowerOfTwo from gl_texture_object, not really needed.
2005-10-05 04:07:50 +00:00
Brian Paul
a9fc8ba756
In gl_texture_image replace IntFormat with InternalFormat and Format with
...
_BaseFormat to be consistant with gl_renderbuffer.
2005-10-05 01:48:07 +00:00
Jouk Jansen
d997b90433
Committing in .
...
1) change compilation on VMS to use IEEE floating points
2) one more problem with _mesa_sprintf solved
Modified Files:
Mesa/docs/README.VMS Mesa/progs/demos/descrip.mms
Mesa/progs/tests/descrip.mms Mesa/progs/util/descrip.mms
Mesa/progs/xdemos/descrip.mms Mesa/src/glu/mesa/descrip.mms
Mesa/src/glu/sgi/descrip.mms Mesa/src/glut/glx/descrip.mms
Mesa/src/mesa/array_cache/descrip.mms
Mesa/src/mesa/drivers/common/descrip.mms
Mesa/src/mesa/drivers/osmesa/descrip.mms
Mesa/src/mesa/drivers/x11/descrip.mms
Mesa/src/mesa/glapi/descrip.mms Mesa/src/mesa/main/descrip.mms
Mesa/src/mesa/main/texobj.c Mesa/src/mesa/math/descrip.mms
Mesa/src/mesa/shader/descrip.mms
Mesa/src/mesa/shader/grammar/descrip.mms
Mesa/src/mesa/shader/slang/descrip.mms
Mesa/src/mesa/swrast/descrip.mms
Mesa/src/mesa/swrast_setup/descrip.mms
Mesa/src/mesa/tnl/descrip.mms
----------------------------------------------------------------------
2005-09-23 07:03:53 +00:00
Brian Paul
aa2069586d
use mesa import wrappers, bug 4468
2005-09-16 18:14:24 +00:00
Keith Whitwell
3e62d3a8d8
add FreeTexImageData hook to help single-copy texturing in drivers
2005-03-22 14:27:10 +00:00
Brian Paul
2752177ade
unlock mutex upon error return (Jeff Muizelaar)
2005-02-12 18:43:38 +00:00
Keith Whitwell
a0c8524924
mesa-main-0-NULL.patch from Jeff Muizelaar
2005-02-11 09:34:05 +00:00
Brian Paul
bb7d5f8837
Remove the Shared->TexObjectList pointer and Next field from gl_texture_object.
...
Was only used by two drivers to walk over all texture objects. Can do that
via the hash table instead.
Cleaned up some comments for struct gl_texture_object.
2005-02-05 18:12:59 +00:00
Brian Paul
7c58a00a50
added mutex to-do comment
2005-01-26 14:01:53 +00:00
Brian Paul
42fee73aad
Change behaviour of glDeleteTextures as discussed on ARB list.
...
glDeleteTexture makes the texture ID immediately free for re-use
while the actual texture object lingers until its reference count goes
to zero (when no longer bound by any rendering context).
2005-01-19 14:50:52 +00:00
Daniel Borca
b756990b84
t' was not initialized (use
texture' instead?)
2004-12-21 15:45:41 +00:00
Brian Paul
3ec0631e95
fix bug in _mesa_IsTexture()
2004-12-21 15:13:41 +00:00
Brian Paul
7e0c5888ea
added a comment in BindTexture
2004-09-23 17:31:21 +00:00
Brian Paul
f18fc68707
Repeatedly deleting a texture ID with glDeleteTextures() could lead to a crash.
...
Added a DeletePending flag to texture object struct to fix that.
Other misc clean-ups.
2004-09-14 20:40:55 +00:00
Brian Paul
a6c423d956
Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch 1015696)
2004-08-25 15:59:48 +00:00
Brian Paul
a212e9670b
minor clean-ups
2004-03-20 00:22:27 +00:00
Roland Scheidegger
c71ee917e3
inform driver of changed wrap/filter parameters due to binding of nv_texrect texture
2004-02-06 15:27:42 +00:00
Keith Whitwell
18fa367ac6
Consolidate texObj->Pos/Neg/X/Y/Z and texObj->Image into a single
...
array, texObj->Image[face][level].
2004-01-27 16:34:45 +00:00
Brian Paul
9c0b83556d
replace CALLOC with MALLOC in _mesa_new_texture_object()
2004-01-19 17:41:02 +00:00
Brian Paul
c929f13701
remove incorrect comments, added _mesa_bzero() call in _mesa_initialize_texture_object()
2004-01-19 17:35:41 +00:00
Brian Paul
4ccbe9e666
added a cast
2003-11-25 16:00:25 +00:00
Brian Paul
7e86eb991b
minor error string improvement
2003-11-24 15:40:52 +00:00
Kendall Bennett
c40d1dd62d
Added GLAPIENTRY decorations for all first level OpenGL API function entry
...
points so that the calling conventions will work correctly with the assembler
stubs with the Open Watcom compiler.
2003-10-21 22:22:17 +00:00
Brian Paul
973da83f62
Allow glTexImage1/2/3D to specify width/height/depth = 0.
...
This allows texture state to be resettable to default state.
Not allowed according to the spec, but allowed by all other OpenGL libs.
2003-09-12 15:03:12 +00:00
Brian Paul
781fb93877
Added OpenGL 1.4's per-texture LOD bias.
2003-08-28 03:04:41 +00:00
Brian Paul
8a033fa135
minor code improvement in glGenTextures
2003-08-18 19:45:42 +00:00
Brian Paul
05944c031c
Restore more code lost during last big merge.
...
Rename colortable-related functions.
2003-07-22 03:51:46 +00:00
Keith Whitwell
6dc8557500
Merge Jose's documentation and core Mesa changes from embedded branch
2003-07-17 13:43:59 +00:00
Brian Paul
887e2cf01a
Implemented GL_ARB_texture_non_power_of_two (except for auto mipmap generation).
2003-07-03 03:05:48 +00:00
Ian Romanick
9ac51f57ef
Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.
2003-06-05 00:50:18 +00:00
Brian Paul
f0805670a1
fix default compare mode
2003-04-01 18:10:10 +00:00
Brian Paul
a3f137094c
New device driver hooks for texture object and texture image creation to
...
allow drivers to implement C++-like inheritance via containment.
Lots of assorted clean-ups related to texture objects.
2003-04-01 16:41:50 +00:00
Brian Paul
24e81fda4d
fix/improve glAreTextures/ProgramsResident (Jose Fonseca)
2003-03-10 00:26:24 +00:00
Brian Paul
610d59981a
First batch of code for GL_NV_fragment_program.
...
Re-org of some GL_NV_vertex_program code.
Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
2003-01-14 04:55:45 +00:00
Brian Paul
ff9ef3baed
move t->Image[i]->Format test (bug 659012)
2003-01-08 16:48:04 +00:00
Keith Whitwell
e15fd85727
Add mechanism to destroy mutexes. Important on OS's where mutex initialization
...
allocates memory (like FreeBSD).
2002-12-12 13:03:15 +00:00
Brian Paul
3c63452e64
Header file clean-up:
...
1. Remove all.h and PC_HEADER junk.
2. Rolled mem.c and mem.h into imports.c and imports.h
3. Include imports.h instead of mem.h
Restore _mesa_create/initialize_context() to be like they were in 4.0.4
New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
2002-10-24 23:57:19 +00:00
Brian Paul
e9283774dc
remove debug printfs
2002-10-22 15:15:41 +00:00
Brian Paul
cf46208624
fix refcount error in _mesa_DeleteTextures (Randy Fayan)
2002-10-22 15:14:49 +00:00
Brian Paul
e6962b183d
add missing texture rectangle code in _mesa_DeleteTextures()
2002-10-22 15:08:59 +00:00
Brian Paul
fc80ad6e62
Changed a number of context fields from GLchan to GLfloat (such as ClearColor).
...
Also changed parameter types for some driver functions (like ctx->Driver.Clear-
Color). Updated all the device drivers.
Someday, we want to support 8, 16 and 32-bit channels dynamically at runtime.
2002-10-04 19:10:06 +00:00
Brian Paul
4e9676fb13
Applied Matt Sealey's patch to remove/isolate all stdio.h function calls.
...
Instead of mstdio.[ch], use imports.[ch] to isolate these functions.
2002-06-29 19:48:15 +00:00
Brian Paul
85d816028a
Port glXCopyContext bug from 4.0 branch.
2002-06-17 23:36:31 +00:00
Brian Paul
8afe7de8de
Implemented GL_NV_texture_rectangle extension.
...
Replace struct gl_texure_object's Dimension w/ Target field.
Added _EnabledUnits to struct gl_texture_attrib - the _ReallyEnabled
field is obsolete, but still present for now. This effectively
removes the 8-texture units limit, 32 units now possible, but unlikely!
New TEXTURE_1D/2D/3D/CUBE/RECT_BIT tokens for unit->_ReallyEnabled field.
Updated device drivers to use ctx->Texture._EnabledUnits.
2002-06-15 03:03:06 +00:00
Brian Paul
4753d60dd0
Added ctx parameter to _mesa_debug()
...
Added _mesa_printf()
Updated SetDrawBuffer() function in all drivers (ala 4.0.3)
Import 4.0.3/DRI changes.
2002-06-15 02:38:15 +00:00
Brian Paul
d09a1d8b29
more removal of fprintf() calls
2002-06-13 04:49:17 +00:00
Brian Paul
4182cf60d9
Finished up GL_ARB_depth_texture and GL_ARB_shadow.
2002-02-15 16:32:06 +00:00
Brian Paul
014ec1ac5e
prototype implementation of GL_ARB_depth_texture, GL_ARB_shadow, GL_ARB_shadow_ambient
2001-12-04 23:44:55 +00:00
Brian Paul
dae1774e20
check if deleting _Current texobj in _mesa_DeleteTextures (Bart Barenbrug)
2001-07-27 14:30:50 +00:00