Skip to content

Commit 49affd5

Browse files
committed
Remove debug logs
1 parent 102367f commit 49affd5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/nbl/video/ISwapchain.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ class NBL_API ISwapchain : public core::IReferenceCounted, public IBackendObject
109109
IGPUImage::SCreationParams m_imgCreationParams;
110110

111111
friend class CCleanupSwapchainReference;
112-
void freeImageExists(uint32_t ix) { std::cout << "freeImageExists(" << ix << ")\n;"; m_imageExists.fetch_and(~(1U << ix)); }
112+
void freeImageExists(uint32_t ix) { m_imageExists.fetch_and(~(1U << ix)); }
113113

114114
// Returns false if the image already existed
115-
bool setImageExists(uint32_t ix) { std::cout << "setImageExists(" << ix << ")\n;"; return (m_imageExists.fetch_or(1U << ix) & (1U << ix)) == 0; }
115+
bool setImageExists(uint32_t ix) { return (m_imageExists.fetch_or(1U << ix) & (1U << ix)) == 0; }
116116

117117
public:
118118
static inline constexpr uint32_t MaxImages = sizeof(m_imageExists) * 8u;

src/nbl/video/COpenGL_Swapchain.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ core::smart_refctd_ptr<COpenGLESSwapchain> createGLESSwapchain(const core::smart
308308
return COpenGLESSwapchain::create(std::move(logicalDevice), std::move(params));
309309
}
310310

311+
// TODO should return EAIR_SUBOPTIMAL if the swapchain doesn't match surface size
311312
template <typename FunctionTableType>
312313
nbl::video::ISwapchain::E_ACQUIRE_IMAGE_RESULT COpenGL_Swapchain<FunctionTableType>::acquireNextImage(uint64_t timeout, IGPUSemaphore* semaphore, IGPUFence* fence, uint32_t* out_imgIx)
313314
{

0 commit comments

Comments
 (0)