Browse Source

allow getIntegerv

Nicolas Cannasse 2 năm trước cách đây
mục cha
commit
ed7cd77860
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      libs/sdl/gl.c

+ 5 - 0
libs/sdl/gl.c

@@ -561,6 +561,11 @@ HL_PRIM int HL_NAME(gl_get_config_parameter)( int feature ) {
 		return 0;
 #		endif
 	default:
+		{
+			int r = -1;
+			glGetIntegerv(feature, &r);
+			return r;
+		}
 		break;
 	}
 	return -1;