add GL_TEXTURE_CUBE_MAP_ARB to _mesa_max_texture_levels(), reordered some comments
This commit is contained in:
@@ -1,19 +1,8 @@
|
|||||||
/**
|
|
||||||
* \file teximage.c
|
|
||||||
* Texture images manipulation functions.
|
|
||||||
*
|
|
||||||
* \note Mesa's native texture data type is GLchan. Native formats are
|
|
||||||
* GL_ALPHA, GL_LUMINANCE, GL_LUMANCE_ALPHA, GL_INTENSITY, GL_RGB, GL_RGBA, and
|
|
||||||
* GL_COLOR_INDEX.
|
|
||||||
*
|
|
||||||
* \note Device drivers are free to implement any internal format they want.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 5.1
|
* Version: 6.0
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -34,6 +23,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file teximage.c
|
||||||
|
* Texture images manipulation functions.
|
||||||
|
*
|
||||||
|
* \note Mesa's native texture data type is GLchan. Native formats are
|
||||||
|
* GL_ALPHA, GL_LUMINANCE, GL_LUMANCE_ALPHA, GL_INTENSITY, GL_RGB, GL_RGBA, and
|
||||||
|
* GL_COLOR_INDEX.
|
||||||
|
*
|
||||||
|
* \note Device drivers are free to implement any internal format they want.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "glheader.h"
|
#include "glheader.h"
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include "convolve.h"
|
#include "convolve.h"
|
||||||
@@ -804,6 +805,7 @@ _mesa_max_texture_levels(GLcontext *ctx, GLenum target)
|
|||||||
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB:
|
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB:
|
||||||
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB:
|
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB:
|
||||||
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB:
|
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB:
|
||||||
|
case GL_TEXTURE_CUBE_MAP_ARB:
|
||||||
case GL_PROXY_TEXTURE_CUBE_MAP_ARB:
|
case GL_PROXY_TEXTURE_CUBE_MAP_ARB:
|
||||||
return ctx->Const.MaxCubeTextureLevels;
|
return ctx->Const.MaxCubeTextureLevels;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user