fixed FX_grSstControl(), now returns FxBool
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Nov 1999 19:42:09 +0000 (19:42 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Nov 1999 19:42:09 +0000 (19:42 +0000)
src/mesa/drivers/glide/fxglidew.c
src/mesa/drivers/glide/fxglidew.h

index 696b8eff6c74ca82d8b93b2b00f93b0fa67dac19..574136a5cd0773e6654a9c33ddb78d41503d03ec 100644 (file)
@@ -147,6 +147,21 @@ extern FxU32 FX_grTexMaxAddress(GrChipID_t tmu) {
   return result;
 }
 
+FxBool FX_grSstControl(FxU32 code)
+{
+#if defined(FX_GLIDE3)
+  (void) code;
+  return 1;  /* OK? */
+#else
+  FxU32 result;
+  BEGIN_BOARD_LOCK();
+  result = grSstControl(code);
+  END_BOARD_LOCK();
+  return result;
+#endif
+}
+
+
 #if defined(FX_GLIDE3)
 
 void FX_grGammaCorrectionValue(float val)
@@ -155,11 +170,6 @@ void FX_grGammaCorrectionValue(float val)
 /* ToDo */
 }
 
-void FX_grSstControl(int par)
-{
-  (void)par;
-  /* ToDo */
-}
 int FX_getFogTableSize(void)
 {
    int result;
index a03ff477a9b552532d64df8c211dd6468ae3a95c..fc41445db191a4ecff7e9336f21afa1525eb53b4 100644 (file)
@@ -482,19 +482,12 @@ typedef struct
 #else
        #define FX_setupGrVertexLayout()                do {} while (0)
 #endif
+
 /*
  * grSstControl stuff
  */
-#if defined(FX_GLIDE3)
-       extern void FX_grSstControl(int par);
-#else
-       #define FX_grSstControl(p)      \
-       do {                            \
-         BEGIN_BOARD_LOCK();           \
-         grSstControl(p);              \
-         END_BOARD_LOCK();             \
-       } while (0)
-#endif
+extern FxBool FX_grSstControl(FxU32 code);
+
 /*
  * grGammaCorrectionValue
  */