From 738318bb75dea8dac4465f53850987f6062a732d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 4 Apr 2003 17:17:50 +0000 Subject: Rework gl[Copy]Tex[Sub]Image() error checking so that all level, width, height and depth checks are done via ctx->Driver.TestProxyTexImage(). This allows more flexiblity, like supporting larger, non-cubic 3D textures. --- src/mesa/main/teximage.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/mesa/main/teximage.h') diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index 7ab6810209..ed0008e37f 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -1,10 +1,8 @@ -/* $Id: teximage.h,v 1.23 2003/04/01 16:41:54 brianp Exp $ */ - /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 5.1 * - * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -83,6 +81,11 @@ extern GLint _mesa_max_texture_levels(GLcontext *ctx, GLenum target); +extern GLboolean +_mesa_test_proxy_teximage(GLcontext *ctx, GLenum target, GLint level, + GLint internalFormat, GLenum format, GLenum type, + GLint width, GLint height, GLint depth, GLint border); + /*** API entry point functions ***/ -- cgit v1.2.3