diff options
author | Ian Romanick <[email protected]> | 2005-08-18 22:16:46 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-08-18 22:16:46 +0000 |
commit | ab5be2c5f7b18fb46116b1bfa968d0a70aeeb556 (patch) | |
tree | cf3b1196d59b79bed89d28ec7476e3f331b8c091 /src | |
parent | 61ac29e7c6db3a899edd9d80f8dbbb98fd7ccc90 (diff) |
Make sure extension entry point offsets are properly initialized. This is
primarilly needed to support functions that are internally implemented using
extension entry points (e.g., glBlendFunc uses glBlendFuncSeparate).
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i810/i810context.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i810/i810screen.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i810/i810context.c b/src/mesa/drivers/dri/i810/i810context.c index b2399b9061b..ef693da1558 100644 --- a/src/mesa/drivers/dri/i810/i810context.c +++ b/src/mesa/drivers/dri/i810/i810context.c @@ -118,7 +118,7 @@ static void i810BufferSize(GLframebuffer *buffer, GLuint *width, GLuint *height) /* Extension strings exported by the i810 driver. */ -static const struct dri_extension card_extensions[] = +const struct dri_extension card_extensions[] = { { "GL_ARB_multisample", GL_ARB_multisample_functions }, { "GL_ARB_multitexture", NULL }, diff --git a/src/mesa/drivers/dri/i810/i810screen.c b/src/mesa/drivers/dri/i810/i810screen.c index c6546d1ebd2..991c7cb2316 100644 --- a/src/mesa/drivers/dri/i810/i810screen.c +++ b/src/mesa/drivers/dri/i810/i810screen.c @@ -54,6 +54,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "GL/internal/dri_interface.h" +extern const struct dri_extension card_extensions[]; + static __GLcontextModes *fill_in_modes( __GLcontextModes *modes, unsigned pixel_bits, unsigned depth_bits, @@ -462,6 +464,7 @@ void * __driCreateNewScreen_20050727( __DRInativeDisplay *dpy, int scrn, __DRIsc *driver_modes = i810FillInModes( 16, 16, 0, 1); + driInitExtensions( NULL, card_extensions, GL_TRUE ); } return (void *) psp; |