# \[solved\] Can't find CastleGLUtils.GLCurrentMultiSampling

**URL:** <https://forum.castle-engine.io/t/solved-cant-find-castleglutils-glcurrentmultisampling/1893>\
**Category:** Bugs\
**Created:** [May 6, 2025, 8:06pm UTC](https://forum.castle-engine.io/t/solved-cant-find-castleglutils-glcurrentmultisampling/1893 "2025-05-06T20:06:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DiggiDoggi](https://forum.castle-engine.io/letter_avatar_proxy/v4/letter/d/6a8cbe/32.png) [@DiggiDoggi](https://forum.castle-engine.io/u/DiggiDoggi)\
**Post date:** [May 6, 2025, 8:06pm UTC](https://forum.castle-engine.io/t/solved-cant-find-castleglutils-glcurrentmultisampling/1893/1 "2025-05-06T20:06:18Z")

</div>

It’s actually a documentation bug, not the code (hopefully).  
Recently I looked into Multisampling because my app has antialiasing when it didn’t suppose to have (aaNone, it is not because of CGE, no worries) and I found the following info

```auto
You can always read OpenGL GL_SAMPLE_BUFFERS_ARB ...
Actually, we already initialize global CastleGLUtils.GLCurrentMultiSampling ...

```

However, it doesn’t look like you have this global at all. I went through the includes, then checked on github but it’s nowhere there.

The text is shown in 2 comments

- [src/window/castlewindow.pas](https://github.com/castle-engine/castle-engine/blob/6017829d4eedf6d6dfe925ce02eb4a40447c3bd2/src/window/castlewindow.pas#L1304)
- [src/base\_rendering/castleinternalcontextbase.pas](https://github.com/castle-engine/castle-engine/blob/6017829d4eedf6d6dfe925ce02eb4a40447c3bd2/src/base_rendering/castleinternalcontextbase.pas#L201)

The same text landed on the documentation pages.

---

<div class="post-metadata">

**Author:** ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)\
**Post date:** [May 7, 2025, 7:54am UTC](https://forum.castle-engine.io/t/solved-cant-find-castleglutils-glcurrentmultisampling/1893/2 "2025-05-07T07:54:01Z")

</div>

> [@DiggiDoggi](#):
>
> `GLCurrentMultiSampling`

Thanks for reporting! We moved it to a read-only property inside the singleton `GLFeatures`, so it should be `GLFeatures.CurrentMultiSampling`.

Fixed in [Fix API docs to lead to @link(TGLFeatures.CurrentMultiSampling GLFeat… · castle-engine/castle-engine@e3cdfe5 · GitHub](https://github.com/castle-engine/castle-engine/commit/e3cdfe566d630b704b63c3321fd2b396b09814b0) , comment now says:

> ```
> You can read @link(TGLFeatures.CurrentMultiSampling GLFeatures.CurrentMultiSampling)
> after initializing the rendering context to know how many samples did you
> actually get (and did you get multi-sampling at all). }
> 
> ```
