ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

static GLboolean compatible_program_targets ( GLenum  t1,
GLenum  t2 
) [static]

Mixing ARB and NV vertex/fragment programs can be tricky. Note: GL_VERTEX_PROGRAM_ARB == GL_VERTEX_PROGRAM_NV but, GL_FRAGMENT_PROGRAM_ARB != GL_FRAGMENT_PROGRAM_NV The two different fragment program targets are supposed to be compatible to some extent (see GL_ARB_fragment_program spec). This function does the compatibility check.

Definition at line 53 of file arbprogram.c.

Referenced by _mesa_BindProgram().

{
   if (t1 == t2)
      return GL_TRUE;
   if (t1 == GL_FRAGMENT_PROGRAM_ARB && t2 == GL_FRAGMENT_PROGRAM_NV)
      return GL_TRUE;
   if (t1 == GL_FRAGMENT_PROGRAM_NV && t2 == GL_FRAGMENT_PROGRAM_ARB)
      return GL_TRUE;
   return GL_FALSE;
}

Generated on Thu May 24 2012 04:58:44 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.