Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygent_vp_build.c
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 7.1 00004 * 00005 * Copyright (C) 2007 Tungsten Graphics All Rights Reserved. 00006 * 00007 * Permission is hereby granted, free of charge, to any person obtaining a 00008 * copy of this software and associated documentation files (the "Software"), 00009 * to deal in the Software without restriction, including without limitation 00010 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00011 * and/or sell copies of the Software, and to permit persons to whom the 00012 * Software is furnished to do so, subject to the following conditions: 00013 * 00014 * The above copyright notice and this permission notice shall be included 00015 * in all copies or substantial portions of the Software. 00016 * 00017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00018 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00020 * TUNGSTEN GRAPHICS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00021 * WHETHER IN 00022 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00023 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00024 */ 00025 00033 #include "main/glheader.h" 00034 #include "main/ffvertex_prog.h" 00035 #include "t_vp_build.h" 00036 00037 00041 void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx ) 00042 { 00043 const struct gl_vertex_program *prev = ctx->VertexProgram._Current; 00044 00045 if (!ctx->VertexProgram._Current || 00046 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) { 00047 ctx->VertexProgram._Current 00048 = ctx->VertexProgram._TnlProgram 00049 = _mesa_get_fixed_func_vertex_program(ctx); 00050 } 00051 00052 /* Tell the driver about the change. Could define a new target for 00053 * this? 00054 */ 00055 if (ctx->VertexProgram._Current != prev && ctx->Driver.BindProgram) { 00056 ctx->Driver.BindProgram(ctx, GL_VERTEX_PROGRAM_ARB, 00057 (struct gl_program *) ctx->VertexProgram._Current); 00058 } 00059 } Generated on Sun May 27 2012 04:20:46 for ReactOS by
1.7.6.1
|