glx: added "glapi/" prefix to include
[mesa.git] / src / glx / x11 / glcontextmodes.c
index 58c548a8fc114fdfa05ea2d34131d142c95fc52d..326c8b2357c5c0a0e0b665422f626d43c8f17485 100644 (file)
@@ -118,7 +118,7 @@ _gl_convert_to_x_visual_type( int visualType )
  * of the fields in \c config are copied to \c mode.  Additional fields in
  * \c mode that can be derrived from the fields of \c config (i.e.,
  * \c haveDepthBuffer) are also filled in.  The remaining fields in \c mode
- * that cannot be derrived are set to default values.
+ * that cannot be derived are set to default values.
  * 
  * \param mode   Destination GL context mode.
  * \param config Source GLX visual config.
@@ -184,6 +184,9 @@ _gl_copy_visual_to_context_mode( __GLcontextModes * mode,
     mode->transparentBlue  = config->transparentBlue;
     mode->transparentAlpha = config->transparentAlpha;
     mode->transparentIndex = config->transparentIndex;
+    mode->samples = config->multiSampleSize;
+    mode->sampleBuffers = config->nMultiSampleBuffers;
+    /* mode->visualSelectGroup = config->visualSelectGroup; ? */
 
     mode->swapMethod = GLX_SWAP_UNDEFINED_OML;
 
@@ -415,7 +418,7 @@ _gl_context_modes_create( unsigned count, size_t minimum_size )
       (*next)->bindToTextureRgb = GLX_DONT_CARE;
       (*next)->bindToTextureRgba = GLX_DONT_CARE;
       (*next)->bindToMipmapTexture = GLX_DONT_CARE;
-      (*next)->bindToTextureTargets = 0;
+      (*next)->bindToTextureTargets = GLX_DONT_CARE;
       (*next)->yInverted = GLX_DONT_CARE;
 
       next = & ((*next)->next);