mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Formatting: Remove double-dots from comments and other strings
This commit is contained in:
parent
82dc6d1c7e
commit
83e5264c86
209 changed files with 508 additions and 509 deletions
|
|
@ -149,13 +149,13 @@ public:
|
|||
|
||||
bool setSwapInterval (int numFramesPerSwap)
|
||||
{
|
||||
jassert (isActive()); // this can only be called when the context is active..
|
||||
jassert (isActive()); // this can only be called when the context is active
|
||||
return wglSwapIntervalEXT != nullptr && wglSwapIntervalEXT (numFramesPerSwap) != FALSE;
|
||||
}
|
||||
|
||||
int getSwapInterval() const
|
||||
{
|
||||
jassert (isActive()); // this can only be called when the context is active..
|
||||
jassert (isActive()); // this can only be called when the context is active
|
||||
return wglGetSwapIntervalEXT != nullptr ? wglGetSwapIntervalEXT() : 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -466,7 +466,7 @@ private:
|
|||
}
|
||||
|
||||
// trying to use a framebuffer after saving it with saveAndRelease()! Be sure to call
|
||||
// reloadSavedCopy() to put it back into GPU memory before using it..
|
||||
// reloadSavedCopy() to put it back into GPU memory before using it
|
||||
jassertfalse;
|
||||
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ struct Target
|
|||
: context (c), frameBufferID (fb.getFrameBufferID()),
|
||||
bounds (origin.x, origin.y, fb.getWidth(), fb.getHeight())
|
||||
{
|
||||
jassert (frameBufferID != 0); // trying to render into an uninitialised framebuffer object.
|
||||
jassert (frameBufferID != 0); // trying to render into an uninitialised framebuffer object
|
||||
}
|
||||
|
||||
Target (const Target& other) noexcept
|
||||
|
|
@ -1471,7 +1471,7 @@ struct StateHelpers
|
|||
{
|
||||
context.extensions.glBufferSubData (GL_ARRAY_BUFFER, 0, (GLsizeiptr) ((size_t) numVertices * sizeof (VertexInfo)), vertexData);
|
||||
// NB: If you get a random crash in here and are running in a Parallels VM, it seems to be a bug in
|
||||
// their driver.. Can't find a workaround unfortunately.
|
||||
// their driver. Can't find a workaround unfortunately.
|
||||
glDrawElements (GL_TRIANGLES, (numVertices * 3) / 2, GL_UNSIGNED_SHORT, nullptr);
|
||||
JUCE_CHECK_OPENGL_ERROR
|
||||
numVertices = 0;
|
||||
|
|
|
|||
|
|
@ -139,8 +139,8 @@ void* OpenGLHelpers::getExtensionFunction (const char* functionName)
|
|||
|
||||
bool OpenGLHelpers::isExtensionSupported (const char* const extensionName)
|
||||
{
|
||||
jassert (extensionName != nullptr); // you must supply a genuine string for this.
|
||||
jassert (isContextActive()); // An OpenGL context will need to be active before calling this.
|
||||
jassert (extensionName != nullptr); // you must supply a genuine string for this
|
||||
jassert (isContextActive()); // an OpenGL context will need to be active before calling this
|
||||
|
||||
if (getOpenGLVersion().major >= 3)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ public:
|
|||
that your implementation is thread-safe.
|
||||
|
||||
(Also note that on Android, this callback won't happen, because there's currently
|
||||
no way to implement it..)
|
||||
no way to implement it.)
|
||||
*/
|
||||
virtual void openGLContextClosing() = 0;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public:
|
|||
@code
|
||||
if (OpenGLShaderProgram::getLanguageVersion() > 1.199)
|
||||
{
|
||||
// ..do something that requires GLSL 1.2 or above..
|
||||
// ...do something that requires GLSL 1.2 or above...
|
||||
}
|
||||
@endcode
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue